├── .github ├── CODEOWNERS ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md ├── PULL_REQUEST_TEMPLATE.md ├── dependabot.yml └── workflows │ ├── ci.yml │ ├── codeql.yml │ ├── golangci-lint.yml │ └── replica-tests.yml ├── .gitignore ├── .golangci.yml ├── Dockerfile.packaging ├── Dockerfile.test ├── LICENSE ├── README.md ├── build.sh ├── doc ├── azure.md ├── cheatsheet.md ├── coding-ghost.md ├── command-line-flags.md ├── cut-over.md ├── hooks.md ├── images │ ├── gh-ost-general-flow.png │ ├── gh-ost-logo-dark-320.png │ ├── gh-ost-logo-light-160.png │ └── gh-ost-operation-modes.png ├── interactive-commands.md ├── local-tests.md ├── migrating-with-sbr.md ├── perks.md ├── questions.md ├── rds.md ├── requirements-and-limitations.md ├── shared-key.md ├── subsecond-lag.md ├── testing-on-replica.md ├── the-fine-print.md ├── throttle.md ├── triggerless-design.md ├── understanding-output.md ├── what-if.md └── why-triggerless.md ├── docker-compose.yml ├── go.mod ├── go.sum ├── go ├── base │ ├── context.go │ ├── context_test.go │ ├── default_logger.go │ ├── load_map.go │ ├── load_map_test.go │ ├── utils.go │ └── utils_test.go ├── binlog │ ├── binlog_dml_event.go │ ├── binlog_entry.go │ ├── binlog_reader.go │ ├── gomysql_reader.go │ └── testdata │ │ ├── mysql-bin.000066 │ │ ├── mysql-bin.000070 │ │ ├── rbr-sample-0.txt │ │ ├── rbr-sample-1.txt │ │ └── rbr-sample-2.txt ├── cmd │ └── gh-ost │ │ └── main.go ├── logic │ ├── applier.go │ ├── applier_test.go │ ├── hooks.go │ ├── hooks_test.go │ ├── inspect.go │ ├── inspect_test.go │ ├── migrator.go │ ├── migrator_test.go │ ├── server.go │ ├── server_test.go │ ├── streamer.go │ ├── streamer_test.go │ ├── test_utils.go │ └── throttler.go ├── mysql │ ├── binlog.go │ ├── binlog_test.go │ ├── connection.go │ ├── connection_test.go │ ├── instance_key.go │ ├── instance_key_map.go │ ├── instance_key_test.go │ ├── replica_terminology_map.go │ └── utils.go └── sql │ ├── builder.go │ ├── builder_test.go │ ├── encoding.go │ ├── parser.go │ ├── parser_test.go │ ├── types.go │ └── types_test.go ├── localtests ├── alter-charset-all-dml │ ├── create.sql │ └── extra_args ├── alter-charset │ ├── create.sql │ └── extra_args ├── attempt-instant-ddl │ ├── create.sql │ └── extra_args ├── autoinc-copy-deletes-user-defined │ ├── create.sql │ ├── expect_table_structure │ └── extra_args ├── autoinc-copy-deletes │ ├── create.sql │ └── expect_table_structure ├── autoinc-copy-simple │ ├── create.sql │ └── expect_table_structure ├── autoinc-zero-value │ └── create.sql ├── bigint-change-nullable │ ├── create.sql │ └── extra_args ├── bit-add │ ├── create.sql │ ├── extra_args │ ├── ghost_columns │ └── orig_columns ├── bit-dml │ ├── create.sql │ └── extra_args ├── compound-pk-ts │ └── create.sql ├── compound-pk │ └── create.sql ├── convert-utf8mb4 │ ├── create.sql │ └── extra_args ├── datetime-1970 │ ├── create.sql │ ├── extra_args │ ├── ghost_columns │ ├── orig_columns │ └── sql_mode ├── datetime-submillis-zeroleading │ └── create.sql ├── datetime-submillis │ └── create.sql ├── datetime-to-timestamp-pk-fail │ ├── create.sql │ ├── expect_failure │ └── extra_args ├── datetime-to-timestamp │ ├── create.sql │ └── extra_args ├── datetime-with-zero │ ├── create.sql │ └── extra_args ├── datetime │ └── create.sql ├── decimal │ └── create.sql ├── discard-fk │ ├── create.sql │ ├── extra_args │ └── ignore_versions ├── docker-compose.yml ├── drop-null-add-not-null │ ├── create.sql │ ├── extra_args │ ├── ghost_columns │ └── orig_columns ├── enum-pk │ └── create.sql ├── enum-to-varchar │ ├── create.sql │ └── extra_args ├── enum │ ├── create.sql │ └── extra_args ├── existing-datetime-with-zero │ ├── create.sql │ └── extra_args ├── fail-datetime-with-zero │ ├── create.sql │ ├── expect_failure │ └── extra_args ├── fail-drop-pk │ ├── create.sql │ ├── expect_failure │ └── extra_args ├── fail-existing-datetime-with-zero │ ├── create.sql │ ├── expect_failure │ └── extra_args ├── fail-fk-parent │ ├── create.sql │ ├── destroy.sql │ ├── expect_failure │ ├── extra_args │ └── ignore_versions ├── fail-fk │ ├── create.sql │ ├── expect_failure │ └── ignore_versions ├── fail-float-unique-key │ ├── create.sql │ ├── expect_failure │ └── extra_args ├── fail-no-shared-uk │ ├── create.sql │ ├── expect_failure │ └── extra_args ├── fail-no-unique-key │ ├── create.sql │ ├── expect_failure │ └── extra_args ├── fail-rename-table │ ├── create.sql │ ├── expect_failure │ └── extra_args ├── fail-update-pk-column │ └── create.sql ├── gbk-charset │ ├── create.sql │ └── extra_args ├── generated-columns-add │ ├── create.sql │ ├── extra_args │ ├── ghost_columns │ ├── ignore_versions │ ├── order_by │ └── orig_columns ├── generated-columns-rename │ ├── create.sql │ ├── extra_args │ └── ignore_versions ├── generated-columns-unique │ ├── create.sql │ └── ignore_versions ├── generated-columns │ ├── create.sql │ └── ignore_versions ├── geometry │ ├── create.sql │ └── ignore_versions ├── json-dml │ └── create.sql ├── json │ └── create.sql ├── keyword-column │ ├── create.sql │ ├── extra_args │ ├── ghost_columns │ └── orig_columns ├── latin1 │ └── create.sql ├── latin1text │ └── create.sql ├── mixed-charset │ └── create.sql ├── modify-change-case-pk │ ├── create.sql │ ├── expect_failure │ └── extra_args ├── modify-change-case │ ├── create.sql │ └── extra_args ├── panic-on-warnings-duplicate-unique-values-on-column-type-change │ ├── create.sql │ ├── expect_failure │ └── extra_args ├── panic-on-warnings-duplicate-values-for-unique-index │ ├── create.sql │ ├── expect_failure │ └── extra_args ├── rename-inserts-only │ ├── create.sql │ └── extra_args ├── rename-none-column │ ├── create.sql │ └── extra_args ├── rename-none-comment │ ├── create.sql │ └── extra_args ├── rename-reorder-column │ ├── create.sql │ ├── extra_args │ ├── ghost_columns │ └── orig_columns ├── rename-reorder-columns │ ├── create.sql │ ├── extra_args │ ├── ghost_columns │ └── orig_columns ├── rename │ ├── create.sql │ └── extra_args ├── reorder-columns │ ├── create.sql │ ├── extra_args │ ├── ghost_columns │ └── orig_columns ├── shared-uk │ ├── create.sql │ └── extra_args ├── spatial │ ├── create.sql │ └── ignore_versions ├── swap-pk-uk │ ├── create.sql │ ├── extra_args │ └── order_by ├── swap-uk-uk │ ├── create.sql │ ├── extra_args │ └── order_by ├── swap-uk │ ├── create.sql │ └── extra_args ├── test.sh ├── timestamp-datetime │ └── create.sql ├── timestamp-to-datetime │ ├── create.sql │ └── extra_args ├── timestamp │ └── create.sql ├── trigger-advanced-features │ ├── create.sql │ └── extra_args ├── trivial │ ├── create.sql │ └── extra_args ├── tz-datetime-ts │ ├── create.sql │ └── extra_args ├── tz-datetime │ └── create.sql ├── tz │ └── create.sql ├── unsigned-modify │ └── create.sql ├── unsigned-rename │ ├── create.sql │ ├── extra_args │ ├── ghost_columns │ └── orig_columns ├── unsigned-reorder │ ├── create.sql │ ├── extra_args │ ├── ghost_columns │ └── orig_columns ├── unsigned │ └── create.sql ├── utf8 │ └── create.sql ├── utf8mb4 │ └── create.sql └── varbinary │ └── create.sql ├── resources └── hooks-sample │ ├── gh-ost-on-before-cut-over-hook │ ├── gh-ost-on-before-row-copy-hook │ ├── gh-ost-on-begin-postponed-hook │ ├── gh-ost-on-failure-hook │ ├── gh-ost-on-interactive-command-hook │ ├── gh-ost-on-row-copy-complete-hook │ ├── gh-ost-on-rowcount-complete-hook │ ├── gh-ost-on-start-replication-hook │ ├── gh-ost-on-startup-hook │ ├── gh-ost-on-status-hook │ ├── gh-ost-on-stop-replication-hook │ ├── gh-ost-on-success-hook │ ├── gh-ost-on-success-hook-2 │ └── gh-ost-on-validated-hook ├── script ├── bootstrap ├── build ├── build-deploy-tarball ├── cibuild ├── cibuild-gh-ost-build-deploy-tarball ├── dock ├── docker-gh-ost-replica-tests ├── ensure-go-installed ├── ensure-golangci-lint-installed ├── gh-ost-test-mysql-master ├── gh-ost-test-mysql-replica ├── go ├── lint └── test ├── test.sh ├── tmp └── .gitkeep └── vendor ├── dario.cat └── mergo │ ├── .deepsource.toml │ ├── .gitignore │ ├── .travis.yml │ ├── CODE_OF_CONDUCT.md │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── README.md │ ├── SECURITY.md │ ├── doc.go │ ├── map.go │ ├── merge.go │ └── mergo.go ├── filippo.io └── edwards25519 │ ├── LICENSE │ ├── README.md │ ├── doc.go │ ├── edwards25519.go │ ├── extra.go │ ├── field │ ├── fe.go │ ├── fe_amd64.go │ ├── fe_amd64.s │ ├── fe_amd64_noasm.go │ ├── fe_arm64.go │ ├── fe_arm64.s │ ├── fe_arm64_noasm.go │ ├── fe_extra.go │ └── fe_generic.go │ ├── scalar.go │ ├── scalar_fiat.go │ ├── scalarmult.go │ └── tables.go ├── github.com ├── Azure │ └── go-ansiterm │ │ ├── LICENSE │ │ ├── README.md │ │ ├── constants.go │ │ ├── context.go │ │ ├── csi_entry_state.go │ │ ├── csi_param_state.go │ │ ├── escape_intermediate_state.go │ │ ├── escape_state.go │ │ ├── event_handler.go │ │ ├── ground_state.go │ │ ├── osc_string_state.go │ │ ├── parser.go │ │ ├── parser_action_helpers.go │ │ ├── parser_actions.go │ │ ├── states.go │ │ ├── utilities.go │ │ └── winterm │ │ ├── ansi.go │ │ ├── api.go │ │ ├── attr_translation.go │ │ ├── cursor_helpers.go │ │ ├── erase_helpers.go │ │ ├── scroll_helper.go │ │ ├── utilities.go │ │ └── win_event_handler.go ├── Masterminds │ └── semver │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE.txt │ │ ├── Makefile │ │ ├── README.md │ │ ├── appveyor.yml │ │ ├── collection.go │ │ ├── constraints.go │ │ ├── doc.go │ │ ├── version.go │ │ └── version_fuzz.go ├── Microsoft │ └── go-winio │ │ ├── .gitattributes │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── CODEOWNERS │ │ ├── LICENSE │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── backup.go │ │ ├── doc.go │ │ ├── ea.go │ │ ├── file.go │ │ ├── fileinfo.go │ │ ├── hvsock.go │ │ ├── internal │ │ ├── fs │ │ │ ├── doc.go │ │ │ ├── fs.go │ │ │ ├── security.go │ │ │ └── zsyscall_windows.go │ │ ├── socket │ │ │ ├── rawaddr.go │ │ │ ├── socket.go │ │ │ └── zsyscall_windows.go │ │ └── stringbuffer │ │ │ └── wstring.go │ │ ├── pipe.go │ │ ├── pkg │ │ └── guid │ │ │ ├── guid.go │ │ │ ├── guid_nonwindows.go │ │ │ ├── guid_windows.go │ │ │ └── variant_string.go │ │ ├── privilege.go │ │ ├── reparse.go │ │ ├── sd.go │ │ ├── syscall.go │ │ └── zsyscall_windows.go ├── cenkalti │ └── backoff │ │ └── v4 │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── backoff.go │ │ ├── context.go │ │ ├── exponential.go │ │ ├── retry.go │ │ ├── ticker.go │ │ ├── timer.go │ │ └── tries.go ├── containerd │ ├── containerd │ │ ├── LICENSE │ │ ├── NOTICE │ │ └── pkg │ │ │ └── userns │ │ │ └── userns_deprecated.go │ ├── log │ │ ├── .golangci.yml │ │ ├── LICENSE │ │ ├── README.md │ │ └── context.go │ └── platforms │ │ ├── .gitattributes │ │ ├── .golangci.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── compare.go │ │ ├── cpuinfo.go │ │ ├── cpuinfo_linux.go │ │ ├── cpuinfo_other.go │ │ ├── database.go │ │ ├── defaults.go │ │ ├── defaults_darwin.go │ │ ├── defaults_freebsd.go │ │ ├── defaults_unix.go │ │ ├── defaults_windows.go │ │ ├── errors.go │ │ ├── platform_compat_windows.go │ │ ├── platforms.go │ │ ├── platforms_other.go │ │ └── platforms_windows.go ├── cpuguy83 │ └── dockercfg │ │ ├── LICENSE │ │ ├── README.md │ │ ├── auth.go │ │ ├── config.go │ │ └── load.go ├── davecgh │ └── go-spew │ │ ├── LICENSE │ │ └── spew │ │ ├── bypass.go │ │ ├── bypasssafe.go │ │ ├── common.go │ │ ├── config.go │ │ ├── doc.go │ │ ├── dump.go │ │ ├── format.go │ │ └── spew.go ├── distribution │ └── reference │ │ ├── .gitattributes │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── CODE-OF-CONDUCT.md │ │ ├── CONTRIBUTING.md │ │ ├── GOVERNANCE.md │ │ ├── LICENSE │ │ ├── MAINTAINERS │ │ ├── Makefile │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── distribution-logo.svg │ │ ├── helpers.go │ │ ├── normalize.go │ │ ├── reference.go │ │ ├── regexp.go │ │ └── sort.go ├── docker │ ├── docker │ │ ├── AUTHORS │ │ ├── LICENSE │ │ ├── NOTICE │ │ ├── api │ │ │ ├── README.md │ │ │ ├── common.go │ │ │ ├── swagger-gen.yaml │ │ │ ├── swagger.yaml │ │ │ └── types │ │ │ │ ├── blkiodev │ │ │ │ └── blkio.go │ │ │ │ ├── checkpoint │ │ │ │ ├── list.go │ │ │ │ └── options.go │ │ │ │ ├── client.go │ │ │ │ ├── container │ │ │ │ ├── change_type.go │ │ │ │ ├── change_types.go │ │ │ │ ├── config.go │ │ │ │ ├── container.go │ │ │ │ ├── container_top.go │ │ │ │ ├── container_update.go │ │ │ │ ├── create_request.go │ │ │ │ ├── create_response.go │ │ │ │ ├── errors.go │ │ │ │ ├── exec.go │ │ │ │ ├── filesystem_change.go │ │ │ │ ├── hostconfig.go │ │ │ │ ├── hostconfig_unix.go │ │ │ │ ├── hostconfig_windows.go │ │ │ │ ├── options.go │ │ │ │ ├── stats.go │ │ │ │ ├── wait_exit_error.go │ │ │ │ ├── wait_response.go │ │ │ │ └── waitcondition.go │ │ │ │ ├── error_response.go │ │ │ │ ├── error_response_ext.go │ │ │ │ ├── events │ │ │ │ └── events.go │ │ │ │ ├── filters │ │ │ │ ├── errors.go │ │ │ │ └── parse.go │ │ │ │ ├── graph_driver_data.go │ │ │ │ ├── id_response.go │ │ │ │ ├── image │ │ │ │ ├── delete_response.go │ │ │ │ ├── image.go │ │ │ │ ├── image_history.go │ │ │ │ ├── opts.go │ │ │ │ └── summary.go │ │ │ │ ├── mount │ │ │ │ └── mount.go │ │ │ │ ├── network │ │ │ │ ├── create_response.go │ │ │ │ ├── endpoint.go │ │ │ │ ├── ipam.go │ │ │ │ └── network.go │ │ │ │ ├── plugin.go │ │ │ │ ├── plugin_device.go │ │ │ │ ├── plugin_env.go │ │ │ │ ├── plugin_interface_type.go │ │ │ │ ├── plugin_mount.go │ │ │ │ ├── plugin_responses.go │ │ │ │ ├── port.go │ │ │ │ ├── registry │ │ │ │ ├── authconfig.go │ │ │ │ ├── authenticate.go │ │ │ │ ├── registry.go │ │ │ │ └── search.go │ │ │ │ ├── strslice │ │ │ │ └── strslice.go │ │ │ │ ├── swarm │ │ │ │ ├── common.go │ │ │ │ ├── config.go │ │ │ │ ├── container.go │ │ │ │ ├── network.go │ │ │ │ ├── node.go │ │ │ │ ├── runtime.go │ │ │ │ ├── runtime │ │ │ │ │ ├── gen.go │ │ │ │ │ ├── plugin.pb.go │ │ │ │ │ └── plugin.proto │ │ │ │ ├── secret.go │ │ │ │ ├── service.go │ │ │ │ ├── service_create_response.go │ │ │ │ ├── service_update_response.go │ │ │ │ ├── swarm.go │ │ │ │ └── task.go │ │ │ │ ├── system │ │ │ │ ├── info.go │ │ │ │ ├── runtime.go │ │ │ │ └── security_opts.go │ │ │ │ ├── time │ │ │ │ └── timestamp.go │ │ │ │ ├── types.go │ │ │ │ ├── types_deprecated.go │ │ │ │ ├── versions │ │ │ │ └── compare.go │ │ │ │ └── volume │ │ │ │ ├── cluster_volume.go │ │ │ │ ├── create_options.go │ │ │ │ ├── list_response.go │ │ │ │ ├── options.go │ │ │ │ ├── volume.go │ │ │ │ └── volume_update.go │ │ ├── client │ │ │ ├── README.md │ │ │ ├── build_cancel.go │ │ │ ├── build_prune.go │ │ │ ├── checkpoint_create.go │ │ │ ├── checkpoint_delete.go │ │ │ ├── checkpoint_list.go │ │ │ ├── client.go │ │ │ ├── client_deprecated.go │ │ │ ├── client_unix.go │ │ │ ├── client_windows.go │ │ │ ├── config_create.go │ │ │ ├── config_inspect.go │ │ │ ├── config_list.go │ │ │ ├── config_remove.go │ │ │ ├── config_update.go │ │ │ ├── container_attach.go │ │ │ ├── container_commit.go │ │ │ ├── container_copy.go │ │ │ ├── container_create.go │ │ │ ├── container_diff.go │ │ │ ├── container_exec.go │ │ │ ├── container_export.go │ │ │ ├── container_inspect.go │ │ │ ├── container_kill.go │ │ │ ├── container_list.go │ │ │ ├── container_logs.go │ │ │ ├── container_pause.go │ │ │ ├── container_prune.go │ │ │ ├── container_remove.go │ │ │ ├── container_rename.go │ │ │ ├── container_resize.go │ │ │ ├── container_restart.go │ │ │ ├── container_start.go │ │ │ ├── container_stats.go │ │ │ ├── container_stop.go │ │ │ ├── container_top.go │ │ │ ├── container_unpause.go │ │ │ ├── container_update.go │ │ │ ├── container_wait.go │ │ │ ├── disk_usage.go │ │ │ ├── distribution_inspect.go │ │ │ ├── envvars.go │ │ │ ├── errors.go │ │ │ ├── events.go │ │ │ ├── hijack.go │ │ │ ├── image_build.go │ │ │ ├── image_create.go │ │ │ ├── image_history.go │ │ │ ├── image_import.go │ │ │ ├── image_inspect.go │ │ │ ├── image_list.go │ │ │ ├── image_load.go │ │ │ ├── image_prune.go │ │ │ ├── image_pull.go │ │ │ ├── image_push.go │ │ │ ├── image_remove.go │ │ │ ├── image_save.go │ │ │ ├── image_search.go │ │ │ ├── image_tag.go │ │ │ ├── info.go │ │ │ ├── interface.go │ │ │ ├── interface_experimental.go │ │ │ ├── interface_stable.go │ │ │ ├── login.go │ │ │ ├── network_connect.go │ │ │ ├── network_create.go │ │ │ ├── network_disconnect.go │ │ │ ├── network_inspect.go │ │ │ ├── network_list.go │ │ │ ├── network_prune.go │ │ │ ├── network_remove.go │ │ │ ├── node_inspect.go │ │ │ ├── node_list.go │ │ │ ├── node_remove.go │ │ │ ├── node_update.go │ │ │ ├── options.go │ │ │ ├── ping.go │ │ │ ├── plugin_create.go │ │ │ ├── plugin_disable.go │ │ │ ├── plugin_enable.go │ │ │ ├── plugin_inspect.go │ │ │ ├── plugin_install.go │ │ │ ├── plugin_list.go │ │ │ ├── plugin_push.go │ │ │ ├── plugin_remove.go │ │ │ ├── plugin_set.go │ │ │ ├── plugin_upgrade.go │ │ │ ├── request.go │ │ │ ├── secret_create.go │ │ │ ├── secret_inspect.go │ │ │ ├── secret_list.go │ │ │ ├── secret_remove.go │ │ │ ├── secret_update.go │ │ │ ├── service_create.go │ │ │ ├── service_inspect.go │ │ │ ├── service_list.go │ │ │ ├── service_logs.go │ │ │ ├── service_remove.go │ │ │ ├── service_update.go │ │ │ ├── swarm_get_unlock_key.go │ │ │ ├── swarm_init.go │ │ │ ├── swarm_inspect.go │ │ │ ├── swarm_join.go │ │ │ ├── swarm_leave.go │ │ │ ├── swarm_unlock.go │ │ │ ├── swarm_update.go │ │ │ ├── task_inspect.go │ │ │ ├── task_list.go │ │ │ ├── task_logs.go │ │ │ ├── utils.go │ │ │ ├── version.go │ │ │ ├── volume_create.go │ │ │ ├── volume_inspect.go │ │ │ ├── volume_list.go │ │ │ ├── volume_prune.go │ │ │ ├── volume_remove.go │ │ │ └── volume_update.go │ │ ├── errdefs │ │ │ ├── defs.go │ │ │ ├── doc.go │ │ │ ├── helpers.go │ │ │ ├── http_helpers.go │ │ │ └── is.go │ │ ├── internal │ │ │ └── multierror │ │ │ │ └── multierror.go │ │ └── pkg │ │ │ ├── archive │ │ │ ├── archive.go │ │ │ ├── archive_linux.go │ │ │ ├── archive_other.go │ │ │ ├── archive_unix.go │ │ │ ├── archive_windows.go │ │ │ ├── changes.go │ │ │ ├── changes_linux.go │ │ │ ├── changes_other.go │ │ │ ├── changes_unix.go │ │ │ ├── changes_windows.go │ │ │ ├── copy.go │ │ │ ├── copy_unix.go │ │ │ ├── copy_windows.go │ │ │ ├── diff.go │ │ │ ├── diff_unix.go │ │ │ ├── diff_windows.go │ │ │ ├── path.go │ │ │ ├── path_unix.go │ │ │ ├── path_windows.go │ │ │ ├── time_linux.go │ │ │ ├── time_unsupported.go │ │ │ ├── whiteouts.go │ │ │ └── wrap.go │ │ │ ├── idtools │ │ │ ├── idtools.go │ │ │ ├── idtools_unix.go │ │ │ ├── idtools_windows.go │ │ │ ├── usergroupadd_linux.go │ │ │ ├── usergroupadd_unsupported.go │ │ │ └── utils_unix.go │ │ │ ├── ioutils │ │ │ ├── buffer.go │ │ │ ├── bytespipe.go │ │ │ ├── fswriters.go │ │ │ ├── readers.go │ │ │ ├── writeflusher.go │ │ │ └── writers.go │ │ │ ├── jsonmessage │ │ │ └── jsonmessage.go │ │ │ ├── pools │ │ │ └── pools.go │ │ │ ├── stdcopy │ │ │ └── stdcopy.go │ │ │ └── system │ │ │ ├── args_windows.go │ │ │ ├── chtimes.go │ │ │ ├── chtimes_nowindows.go │ │ │ ├── chtimes_windows.go │ │ │ ├── errors.go │ │ │ ├── filesys.go │ │ │ ├── filesys_unix.go │ │ │ ├── filesys_windows.go │ │ │ ├── init_windows.go │ │ │ ├── lstat_unix.go │ │ │ ├── lstat_windows.go │ │ │ ├── mknod.go │ │ │ ├── mknod_freebsd.go │ │ │ ├── mknod_unix.go │ │ │ ├── stat_bsd.go │ │ │ ├── stat_darwin.go │ │ │ ├── stat_illumos.go │ │ │ ├── stat_linux.go │ │ │ ├── stat_openbsd.go │ │ │ ├── stat_unix.go │ │ │ ├── stat_windows.go │ │ │ ├── utimes_unix.go │ │ │ ├── utimes_unsupported.go │ │ │ ├── xattrs.go │ │ │ ├── xattrs_linux.go │ │ │ └── xattrs_unsupported.go │ ├── go-connections │ │ ├── LICENSE │ │ ├── nat │ │ │ ├── nat.go │ │ │ ├── parse.go │ │ │ └── sort.go │ │ ├── sockets │ │ │ ├── README.md │ │ │ ├── inmem_socket.go │ │ │ ├── proxy.go │ │ │ ├── sockets.go │ │ │ ├── sockets_unix.go │ │ │ ├── sockets_windows.go │ │ │ ├── tcp_socket.go │ │ │ └── unix_socket.go │ │ └── tlsconfig │ │ │ ├── certpool.go │ │ │ ├── config.go │ │ │ └── config_client_ciphers.go │ └── go-units │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── MAINTAINERS │ │ ├── README.md │ │ ├── circle.yml │ │ ├── duration.go │ │ ├── size.go │ │ └── ulimit.go ├── felixge │ └── httpsnoop │ │ ├── .gitignore │ │ ├── LICENSE.txt │ │ ├── Makefile │ │ ├── README.md │ │ ├── capture_metrics.go │ │ ├── docs.go │ │ ├── wrap_generated_gteq_1.8.go │ │ └── wrap_generated_lt_1.8.go ├── go-ini │ └── ini │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── codecov.yml │ │ ├── data_source.go │ │ ├── deprecated.go │ │ ├── error.go │ │ ├── file.go │ │ ├── helper.go │ │ ├── ini.go │ │ ├── key.go │ │ ├── parser.go │ │ ├── section.go │ │ └── struct.go ├── go-logr │ ├── logr │ │ ├── .golangci.yaml │ │ ├── CHANGELOG.md │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── context.go │ │ ├── context_noslog.go │ │ ├── context_slog.go │ │ ├── discard.go │ │ ├── funcr │ │ │ ├── funcr.go │ │ │ └── slogsink.go │ │ ├── logr.go │ │ ├── sloghandler.go │ │ ├── slogr.go │ │ └── slogsink.go │ └── stdr │ │ ├── LICENSE │ │ ├── README.md │ │ └── stdr.go ├── go-mysql-org │ └── go-mysql │ │ ├── LICENSE │ │ ├── client │ │ ├── auth.go │ │ ├── conn.go │ │ ├── pool.go │ │ ├── pool_options.go │ │ ├── req.go │ │ ├── resp.go │ │ ├── stmt.go │ │ └── tls.go │ │ ├── compress │ │ └── zlib.go │ │ ├── mysql │ │ ├── const.go │ │ ├── errcode.go │ │ ├── errname.go │ │ ├── error.go │ │ ├── field.go │ │ ├── gtid.go │ │ ├── mariadb_gtid.go │ │ ├── mysql_gtid.go │ │ ├── parse_binary.go │ │ ├── position.go │ │ ├── result.go │ │ ├── resultset.go │ │ ├── resultset_helper.go │ │ ├── rowdata.go │ │ ├── state.go │ │ ├── util.go │ │ └── validate.go │ │ ├── packet │ │ └── conn.go │ │ ├── replication │ │ ├── backup.go │ │ ├── binlogstreamer.go │ │ ├── binlogsyncer.go │ │ ├── const.go │ │ ├── doc.go │ │ ├── event.go │ │ ├── generic_event.go │ │ ├── json_binary.go │ │ ├── parser.go │ │ ├── row_event.go │ │ ├── time.go │ │ └── transaction_payload_event.go │ │ └── utils │ │ ├── byte_slice_pool.go │ │ ├── bytes_buffer_pool.go │ │ ├── now.go │ │ ├── now_unix.go │ │ └── zeroalloc.go ├── go-ole │ └── go-ole │ │ ├── .travis.yml │ │ ├── ChangeLog.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── appveyor.yml │ │ ├── com.go │ │ ├── com_func.go │ │ ├── connect.go │ │ ├── constants.go │ │ ├── error.go │ │ ├── error_func.go │ │ ├── error_windows.go │ │ ├── guid.go │ │ ├── iconnectionpoint.go │ │ ├── iconnectionpoint_func.go │ │ ├── iconnectionpoint_windows.go │ │ ├── iconnectionpointcontainer.go │ │ ├── iconnectionpointcontainer_func.go │ │ ├── iconnectionpointcontainer_windows.go │ │ ├── idispatch.go │ │ ├── idispatch_func.go │ │ ├── idispatch_windows.go │ │ ├── ienumvariant.go │ │ ├── ienumvariant_func.go │ │ ├── ienumvariant_windows.go │ │ ├── iinspectable.go │ │ ├── iinspectable_func.go │ │ ├── iinspectable_windows.go │ │ ├── iprovideclassinfo.go │ │ ├── iprovideclassinfo_func.go │ │ ├── iprovideclassinfo_windows.go │ │ ├── itypeinfo.go │ │ ├── itypeinfo_func.go │ │ ├── itypeinfo_windows.go │ │ ├── iunknown.go │ │ ├── iunknown_func.go │ │ ├── iunknown_windows.go │ │ ├── ole.go │ │ ├── oleutil │ │ ├── connection.go │ │ ├── connection_func.go │ │ ├── connection_windows.go │ │ ├── go-get.go │ │ └── oleutil.go │ │ ├── safearray.go │ │ ├── safearray_func.go │ │ ├── safearray_windows.go │ │ ├── safearrayconversion.go │ │ ├── safearrayslices.go │ │ ├── utility.go │ │ ├── variables.go │ │ ├── variant.go │ │ ├── variant_386.go │ │ ├── variant_amd64.go │ │ ├── variant_arm.go │ │ ├── variant_arm64.go │ │ ├── variant_date_386.go │ │ ├── variant_date_amd64.go │ │ ├── variant_date_arm.go │ │ ├── variant_date_arm64.go │ │ ├── variant_ppc64le.go │ │ ├── variant_s390x.go │ │ ├── vt_string.go │ │ ├── winrt.go │ │ └── winrt_doc.go ├── go-sql-driver │ └── mysql │ │ ├── .gitignore │ │ ├── AUTHORS │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── atomic_bool.go │ │ ├── atomic_bool_go118.go │ │ ├── auth.go │ │ ├── buffer.go │ │ ├── collations.go │ │ ├── conncheck.go │ │ ├── conncheck_dummy.go │ │ ├── connection.go │ │ ├── connector.go │ │ ├── const.go │ │ ├── driver.go │ │ ├── dsn.go │ │ ├── errors.go │ │ ├── fields.go │ │ ├── infile.go │ │ ├── nulltime.go │ │ ├── packets.go │ │ ├── result.go │ │ ├── rows.go │ │ ├── statement.go │ │ ├── transaction.go │ │ └── utils.go ├── goccy │ └── go-json │ │ ├── .codecov.yml │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── color.go │ │ ├── decode.go │ │ ├── docker-compose.yml │ │ ├── encode.go │ │ ├── error.go │ │ ├── internal │ │ ├── decoder │ │ │ ├── anonymous_field.go │ │ │ ├── array.go │ │ │ ├── assign.go │ │ │ ├── bool.go │ │ │ ├── bytes.go │ │ │ ├── compile.go │ │ │ ├── compile_norace.go │ │ │ ├── compile_race.go │ │ │ ├── context.go │ │ │ ├── float.go │ │ │ ├── func.go │ │ │ ├── int.go │ │ │ ├── interface.go │ │ │ ├── invalid.go │ │ │ ├── map.go │ │ │ ├── number.go │ │ │ ├── option.go │ │ │ ├── path.go │ │ │ ├── ptr.go │ │ │ ├── slice.go │ │ │ ├── stream.go │ │ │ ├── string.go │ │ │ ├── struct.go │ │ │ ├── type.go │ │ │ ├── uint.go │ │ │ ├── unmarshal_json.go │ │ │ ├── unmarshal_text.go │ │ │ └── wrapped_string.go │ │ ├── encoder │ │ │ ├── code.go │ │ │ ├── compact.go │ │ │ ├── compiler.go │ │ │ ├── compiler_norace.go │ │ │ ├── compiler_race.go │ │ │ ├── context.go │ │ │ ├── decode_rune.go │ │ │ ├── encoder.go │ │ │ ├── indent.go │ │ │ ├── int.go │ │ │ ├── map112.go │ │ │ ├── map113.go │ │ │ ├── opcode.go │ │ │ ├── option.go │ │ │ ├── optype.go │ │ │ ├── query.go │ │ │ ├── string.go │ │ │ ├── string_table.go │ │ │ ├── vm │ │ │ │ ├── debug_vm.go │ │ │ │ ├── hack.go │ │ │ │ ├── util.go │ │ │ │ └── vm.go │ │ │ ├── vm_color │ │ │ │ ├── debug_vm.go │ │ │ │ ├── hack.go │ │ │ │ ├── util.go │ │ │ │ └── vm.go │ │ │ ├── vm_color_indent │ │ │ │ ├── debug_vm.go │ │ │ │ ├── util.go │ │ │ │ └── vm.go │ │ │ └── vm_indent │ │ │ │ ├── debug_vm.go │ │ │ │ ├── hack.go │ │ │ │ ├── util.go │ │ │ │ └── vm.go │ │ ├── errors │ │ │ └── error.go │ │ └── runtime │ │ │ ├── rtype.go │ │ │ ├── struct_field.go │ │ │ └── type.go │ │ ├── json.go │ │ ├── option.go │ │ ├── path.go │ │ └── query.go ├── gogo │ └── protobuf │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ └── 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 ├── google │ └── uuid │ │ ├── CHANGELOG.md │ │ ├── CONTRIBUTING.md │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dce.go │ │ ├── doc.go │ │ ├── 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 │ │ ├── version6.go │ │ └── version7.go ├── hashicorp │ └── go-version │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── constraint.go │ │ ├── version.go │ │ └── version_collection.go ├── klauspost │ └── compress │ │ ├── .gitattributes │ │ ├── .gitignore │ │ ├── .goreleaser.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── compressible.go │ │ ├── flate │ │ ├── deflate.go │ │ ├── dict_decoder.go │ │ ├── fast_encoder.go │ │ ├── huffman_bit_writer.go │ │ ├── huffman_code.go │ │ ├── huffman_sortByFreq.go │ │ ├── huffman_sortByLiteral.go │ │ ├── inflate.go │ │ ├── inflate_gen.go │ │ ├── level1.go │ │ ├── level2.go │ │ ├── level3.go │ │ ├── level4.go │ │ ├── level5.go │ │ ├── level6.go │ │ ├── matchlen_amd64.go │ │ ├── matchlen_amd64.s │ │ ├── matchlen_generic.go │ │ ├── regmask_amd64.go │ │ ├── regmask_other.go │ │ ├── stateless.go │ │ └── token.go │ │ ├── fse │ │ ├── README.md │ │ ├── bitreader.go │ │ ├── bitwriter.go │ │ ├── bytereader.go │ │ ├── compress.go │ │ ├── decompress.go │ │ └── fse.go │ │ ├── gen.sh │ │ ├── huff0 │ │ ├── .gitignore │ │ ├── README.md │ │ ├── bitreader.go │ │ ├── bitwriter.go │ │ ├── compress.go │ │ ├── decompress.go │ │ ├── decompress_amd64.go │ │ ├── decompress_amd64.s │ │ ├── decompress_generic.go │ │ └── huff0.go │ │ ├── internal │ │ ├── cpuinfo │ │ │ ├── cpuinfo.go │ │ │ ├── cpuinfo_amd64.go │ │ │ └── cpuinfo_amd64.s │ │ └── snapref │ │ │ ├── LICENSE │ │ │ ├── decode.go │ │ │ ├── decode_other.go │ │ │ ├── encode.go │ │ │ ├── encode_other.go │ │ │ └── snappy.go │ │ ├── s2sx.mod │ │ ├── s2sx.sum │ │ ├── zlib │ │ ├── reader.go │ │ └── writer.go │ │ └── zstd │ │ ├── README.md │ │ ├── bitreader.go │ │ ├── bitwriter.go │ │ ├── blockdec.go │ │ ├── blockenc.go │ │ ├── blocktype_string.go │ │ ├── bytebuf.go │ │ ├── bytereader.go │ │ ├── decodeheader.go │ │ ├── decoder.go │ │ ├── decoder_options.go │ │ ├── dict.go │ │ ├── enc_base.go │ │ ├── enc_best.go │ │ ├── enc_better.go │ │ ├── enc_dfast.go │ │ ├── enc_fast.go │ │ ├── encoder.go │ │ ├── encoder_options.go │ │ ├── framedec.go │ │ ├── frameenc.go │ │ ├── fse_decoder.go │ │ ├── fse_decoder_amd64.go │ │ ├── fse_decoder_amd64.s │ │ ├── fse_decoder_generic.go │ │ ├── fse_encoder.go │ │ ├── fse_predefined.go │ │ ├── hash.go │ │ ├── history.go │ │ ├── internal │ │ └── xxhash │ │ │ ├── LICENSE.txt │ │ │ ├── README.md │ │ │ ├── xxhash.go │ │ │ ├── xxhash_amd64.s │ │ │ ├── xxhash_arm64.s │ │ │ ├── xxhash_asm.go │ │ │ ├── xxhash_other.go │ │ │ └── xxhash_safe.go │ │ ├── matchlen_amd64.go │ │ ├── matchlen_amd64.s │ │ ├── matchlen_generic.go │ │ ├── seqdec.go │ │ ├── seqdec_amd64.go │ │ ├── seqdec_amd64.s │ │ ├── seqdec_generic.go │ │ ├── seqenc.go │ │ ├── snappy.go │ │ ├── zip.go │ │ └── zstd.go ├── lufia │ └── plan9stats │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── cpu.go │ │ ├── doc.go │ │ ├── host.go │ │ ├── int.go │ │ ├── opts.go │ │ └── stats.go ├── magiconair │ └── properties │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── decode.go │ │ ├── doc.go │ │ ├── integrate.go │ │ ├── lex.go │ │ ├── load.go │ │ ├── parser.go │ │ ├── properties.go │ │ └── rangecheck.go ├── moby │ ├── docker-image-spec │ │ ├── LICENSE │ │ └── specs-go │ │ │ └── v1 │ │ │ └── image.go │ ├── patternmatcher │ │ ├── LICENSE │ │ ├── NOTICE │ │ ├── ignorefile │ │ │ └── ignorefile.go │ │ └── patternmatcher.go │ ├── sys │ │ ├── sequential │ │ │ ├── LICENSE │ │ │ ├── doc.go │ │ │ ├── sequential_unix.go │ │ │ └── sequential_windows.go │ │ ├── user │ │ │ ├── LICENSE │ │ │ ├── lookup_unix.go │ │ │ ├── user.go │ │ │ └── user_fuzzer.go │ │ └── userns │ │ │ ├── LICENSE │ │ │ ├── userns.go │ │ │ ├── userns_linux.go │ │ │ ├── userns_linux_fuzzer.go │ │ │ └── userns_unsupported.go │ └── term │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── ascii.go │ │ ├── doc.go │ │ ├── proxy.go │ │ ├── term.go │ │ ├── term_unix.go │ │ ├── term_windows.go │ │ ├── termios_bsd.go │ │ ├── termios_nonbsd.go │ │ ├── termios_unix.go │ │ ├── termios_windows.go │ │ └── windows │ │ ├── ansi_reader.go │ │ ├── ansi_writer.go │ │ ├── console.go │ │ └── doc.go ├── morikuni │ └── aec │ │ ├── LICENSE │ │ ├── README.md │ │ ├── aec.go │ │ ├── ansi.go │ │ ├── builder.go │ │ ├── sample.gif │ │ └── sgr.go ├── openark │ └── golib │ │ ├── LICENSE │ │ ├── log │ │ └── log.go │ │ └── sqlutils │ │ ├── dialect.go │ │ ├── sqlite_dialect.go │ │ └── sqlutils.go ├── opencontainers │ ├── go-digest │ │ ├── .mailmap │ │ ├── .pullapprove.yml │ │ ├── .travis.yml │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── LICENSE.docs │ │ ├── MAINTAINERS │ │ ├── README.md │ │ ├── algorithm.go │ │ ├── digest.go │ │ ├── digester.go │ │ ├── doc.go │ │ └── verifiers.go │ └── image-spec │ │ ├── LICENSE │ │ └── specs-go │ │ ├── v1 │ │ ├── annotations.go │ │ ├── config.go │ │ ├── descriptor.go │ │ ├── index.go │ │ ├── layout.go │ │ ├── manifest.go │ │ └── mediatype.go │ │ ├── version.go │ │ └── versioned.go ├── pingcap │ ├── errors │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── compatible_shim.go │ │ ├── errors.go │ │ ├── group.go │ │ ├── juju_adaptor.go │ │ ├── normalize.go │ │ └── stack.go │ ├── log │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── config.go │ │ ├── global.go │ │ ├── log.go │ │ ├── zap_test_logger.go │ │ ├── zap_text_core.go │ │ └── zap_text_encoder.go │ └── tidb │ │ └── pkg │ │ └── parser │ │ ├── LICENSE │ │ ├── charset │ │ ├── BUILD.bazel │ │ ├── charset.go │ │ ├── encoding.go │ │ ├── encoding_ascii.go │ │ ├── encoding_base.go │ │ ├── encoding_bin.go │ │ ├── encoding_gbk.go │ │ ├── encoding_latin1.go │ │ ├── encoding_table.go │ │ └── encoding_utf8.go │ │ ├── format │ │ ├── BUILD.bazel │ │ └── format.go │ │ ├── mysql │ │ ├── BUILD.bazel │ │ ├── charset.go │ │ ├── const.go │ │ ├── errcode.go │ │ ├── errname.go │ │ ├── error.go │ │ ├── locale_format.go │ │ ├── privs.go │ │ ├── state.go │ │ ├── type.go │ │ └── util.go │ │ └── terror │ │ ├── BUILD.bazel │ │ └── terror.go ├── pkg │ └── errors │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── appveyor.yml │ │ ├── errors.go │ │ ├── go113.go │ │ └── stack.go ├── pmezard │ └── go-difflib │ │ ├── LICENSE │ │ └── difflib │ │ └── difflib.go ├── power-devops │ └── perfstat │ │ ├── LICENSE │ │ ├── c_helpers.c │ │ ├── c_helpers.h │ │ ├── config.go │ │ ├── cpustat.go │ │ ├── diskstat.go │ │ ├── doc.go │ │ ├── fsstat.go │ │ ├── helpers.go │ │ ├── lparstat.go │ │ ├── lvmstat.go │ │ ├── memstat.go │ │ ├── netstat.go │ │ ├── procstat.go │ │ ├── sysconf.go │ │ ├── systemcfg.go │ │ ├── types_cpu.go │ │ ├── types_disk.go │ │ ├── types_fs.go │ │ ├── types_lpar.go │ │ ├── types_lvm.go │ │ ├── types_memory.go │ │ ├── types_network.go │ │ ├── types_process.go │ │ └── uptime.go ├── shirou │ └── gopsutil │ │ └── v3 │ │ ├── LICENSE │ │ ├── common │ │ └── env.go │ │ ├── cpu │ │ ├── cpu.go │ │ ├── cpu_aix.go │ │ ├── cpu_aix_cgo.go │ │ ├── cpu_aix_nocgo.go │ │ ├── cpu_darwin.go │ │ ├── cpu_darwin_cgo.go │ │ ├── cpu_darwin_nocgo.go │ │ ├── cpu_dragonfly.go │ │ ├── cpu_dragonfly_amd64.go │ │ ├── cpu_fallback.go │ │ ├── cpu_freebsd.go │ │ ├── cpu_freebsd_386.go │ │ ├── cpu_freebsd_amd64.go │ │ ├── cpu_freebsd_arm.go │ │ ├── cpu_freebsd_arm64.go │ │ ├── cpu_linux.go │ │ ├── cpu_netbsd.go │ │ ├── cpu_netbsd_amd64.go │ │ ├── cpu_netbsd_arm64.go │ │ ├── cpu_openbsd.go │ │ ├── cpu_openbsd_386.go │ │ ├── cpu_openbsd_amd64.go │ │ ├── cpu_openbsd_arm.go │ │ ├── cpu_openbsd_arm64.go │ │ ├── cpu_plan9.go │ │ ├── cpu_solaris.go │ │ └── cpu_windows.go │ │ ├── internal │ │ └── common │ │ │ ├── binary.go │ │ │ ├── common.go │ │ │ ├── common_darwin.go │ │ │ ├── common_freebsd.go │ │ │ ├── common_linux.go │ │ │ ├── common_netbsd.go │ │ │ ├── common_openbsd.go │ │ │ ├── common_unix.go │ │ │ ├── common_windows.go │ │ │ ├── endian.go │ │ │ ├── sleep.go │ │ │ └── warnings.go │ │ ├── mem │ │ ├── mem.go │ │ ├── mem_aix.go │ │ ├── mem_aix_cgo.go │ │ ├── mem_aix_nocgo.go │ │ ├── mem_bsd.go │ │ ├── mem_darwin.go │ │ ├── mem_darwin_cgo.go │ │ ├── mem_darwin_nocgo.go │ │ ├── mem_fallback.go │ │ ├── mem_freebsd.go │ │ ├── mem_linux.go │ │ ├── mem_netbsd.go │ │ ├── mem_openbsd.go │ │ ├── mem_openbsd_386.go │ │ ├── mem_openbsd_amd64.go │ │ ├── mem_openbsd_arm.go │ │ ├── mem_openbsd_arm64.go │ │ ├── mem_plan9.go │ │ ├── mem_solaris.go │ │ └── mem_windows.go │ │ ├── net │ │ ├── net.go │ │ ├── net_aix.go │ │ ├── net_aix_cgo.go │ │ ├── net_aix_nocgo.go │ │ ├── net_darwin.go │ │ ├── net_fallback.go │ │ ├── net_freebsd.go │ │ ├── net_linux.go │ │ ├── net_linux_111.go │ │ ├── net_linux_116.go │ │ ├── net_openbsd.go │ │ ├── net_solaris.go │ │ ├── net_unix.go │ │ └── net_windows.go │ │ └── process │ │ ├── process.go │ │ ├── process_bsd.go │ │ ├── process_darwin.go │ │ ├── process_darwin_amd64.go │ │ ├── process_darwin_arm64.go │ │ ├── process_darwin_cgo.go │ │ ├── process_darwin_nocgo.go │ │ ├── process_fallback.go │ │ ├── process_freebsd.go │ │ ├── process_freebsd_386.go │ │ ├── process_freebsd_amd64.go │ │ ├── process_freebsd_arm.go │ │ ├── process_freebsd_arm64.go │ │ ├── process_linux.go │ │ ├── process_openbsd.go │ │ ├── process_openbsd_386.go │ │ ├── process_openbsd_amd64.go │ │ ├── process_openbsd_arm.go │ │ ├── process_openbsd_arm64.go │ │ ├── process_plan9.go │ │ ├── process_posix.go │ │ ├── process_solaris.go │ │ ├── process_windows.go │ │ ├── process_windows_32bit.go │ │ └── process_windows_64bit.go ├── shoenig │ └── go-m1cpu │ │ ├── .golangci.yaml │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── cpu.go │ │ └── incompatible.go ├── shopspring │ └── decimal │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── decimal-go.go │ │ ├── decimal.go │ │ └── rounding.go ├── siddontang │ └── go-log │ │ ├── LICENSE │ │ ├── log │ │ ├── doc.go │ │ ├── filehandler.go │ │ ├── handler.go │ │ ├── log.go │ │ └── logger.go │ │ └── loggers │ │ └── loggers.go ├── sirupsen │ └── logrus │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── alt_exit.go │ │ ├── appveyor.yml │ │ ├── buffer_pool.go │ │ ├── doc.go │ │ ├── entry.go │ │ ├── exported.go │ │ ├── formatter.go │ │ ├── hooks.go │ │ ├── json_formatter.go │ │ ├── logger.go │ │ ├── logrus.go │ │ ├── terminal_check_appengine.go │ │ ├── terminal_check_bsd.go │ │ ├── terminal_check_js.go │ │ ├── terminal_check_no_terminal.go │ │ ├── terminal_check_notappengine.go │ │ ├── terminal_check_solaris.go │ │ ├── terminal_check_unix.go │ │ ├── terminal_check_windows.go │ │ ├── text_formatter.go │ │ └── 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 │ │ └── suite │ │ ├── doc.go │ │ ├── interfaces.go │ │ ├── stats.go │ │ └── suite.go ├── testcontainers │ └── testcontainers-go │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── .mockery.yaml │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── Pipfile │ │ ├── Pipfile.lock │ │ ├── README.md │ │ ├── RELEASING.md │ │ ├── cleanup.go │ │ ├── commons-test.mk │ │ ├── config.go │ │ ├── container.go │ │ ├── docker.go │ │ ├── docker_auth.go │ │ ├── docker_client.go │ │ ├── docker_mounts.go │ │ ├── exec │ │ └── processor.go │ │ ├── file.go │ │ ├── generate.go │ │ ├── generic.go │ │ ├── image.go │ │ ├── internal │ │ ├── config │ │ │ └── config.go │ │ ├── core │ │ │ ├── bootstrap.go │ │ │ ├── client.go │ │ │ ├── docker_host.go │ │ │ ├── docker_rootless.go │ │ │ ├── docker_socket.go │ │ │ ├── images.go │ │ │ ├── labels.go │ │ │ └── network │ │ │ │ └── network.go │ │ └── version.go │ │ ├── lifecycle.go │ │ ├── logconsumer.go │ │ ├── logger.go │ │ ├── mkdocs.yml │ │ ├── mounts.go │ │ ├── network.go │ │ ├── options.go │ │ ├── parallel.go │ │ ├── port_forwarding.go │ │ ├── provider.go │ │ ├── reaper.go │ │ ├── requirements.txt │ │ ├── runtime.txt │ │ ├── sonar-project.properties │ │ ├── testcontainers.go │ │ ├── testing.go │ │ └── wait │ │ ├── all.go │ │ ├── errors.go │ │ ├── errors_windows.go │ │ ├── exec.go │ │ ├── exit.go │ │ ├── file.go │ │ ├── health.go │ │ ├── host_port.go │ │ ├── http.go │ │ ├── log.go │ │ ├── nop.go │ │ ├── sql.go │ │ └── wait.go ├── tklauser │ ├── go-sysconf │ │ ├── .cirrus.yml │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── sysconf.go │ │ ├── sysconf_bsd.go │ │ ├── sysconf_darwin.go │ │ ├── sysconf_dragonfly.go │ │ ├── sysconf_freebsd.go │ │ ├── sysconf_generic.go │ │ ├── sysconf_linux.go │ │ ├── sysconf_netbsd.go │ │ ├── sysconf_openbsd.go │ │ ├── sysconf_posix.go │ │ ├── sysconf_solaris.go │ │ ├── sysconf_unsupported.go │ │ ├── zsysconf_defs_darwin.go │ │ ├── zsysconf_defs_dragonfly.go │ │ ├── zsysconf_defs_freebsd.go │ │ ├── zsysconf_defs_linux.go │ │ ├── zsysconf_defs_netbsd.go │ │ ├── zsysconf_defs_openbsd.go │ │ ├── zsysconf_defs_solaris.go │ │ ├── zsysconf_values_freebsd_386.go │ │ ├── zsysconf_values_freebsd_amd64.go │ │ ├── zsysconf_values_freebsd_arm.go │ │ ├── zsysconf_values_freebsd_arm64.go │ │ ├── zsysconf_values_freebsd_riscv64.go │ │ ├── zsysconf_values_linux_386.go │ │ ├── zsysconf_values_linux_amd64.go │ │ ├── zsysconf_values_linux_arm.go │ │ ├── zsysconf_values_linux_arm64.go │ │ ├── zsysconf_values_linux_loong64.go │ │ ├── zsysconf_values_linux_mips.go │ │ ├── zsysconf_values_linux_mips64.go │ │ ├── zsysconf_values_linux_mips64le.go │ │ ├── zsysconf_values_linux_mipsle.go │ │ ├── zsysconf_values_linux_ppc64.go │ │ ├── zsysconf_values_linux_ppc64le.go │ │ ├── zsysconf_values_linux_riscv64.go │ │ ├── zsysconf_values_linux_s390x.go │ │ ├── zsysconf_values_netbsd_386.go │ │ ├── zsysconf_values_netbsd_amd64.go │ │ ├── zsysconf_values_netbsd_arm.go │ │ └── zsysconf_values_netbsd_arm64.go │ └── numcpus │ │ ├── .cirrus.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── numcpus.go │ │ ├── numcpus_bsd.go │ │ ├── numcpus_linux.go │ │ ├── numcpus_solaris.go │ │ ├── numcpus_unsupported.go │ │ └── numcpus_windows.go └── yusufpapurcu │ └── wmi │ ├── LICENSE │ ├── README.md │ ├── swbemservices.go │ └── wmi.go ├── go.opentelemetry.io ├── contrib │ └── instrumentation │ │ └── net │ │ └── http │ │ └── otelhttp │ │ ├── LICENSE │ │ ├── client.go │ │ ├── common.go │ │ ├── config.go │ │ ├── doc.go │ │ ├── handler.go │ │ ├── internal │ │ └── semconvutil │ │ │ ├── gen.go │ │ │ ├── httpconv.go │ │ │ └── netconv.go │ │ ├── labeler.go │ │ ├── transport.go │ │ ├── version.go │ │ └── wrap.go └── otel │ ├── .codespellignore │ ├── .codespellrc │ ├── .gitattributes │ ├── .gitignore │ ├── .gitmodules │ ├── .golangci.yml │ ├── .lycheeignore │ ├── .markdownlint.yaml │ ├── CHANGELOG.md │ ├── CODEOWNERS │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── RELEASING.md │ ├── VERSIONING.md │ ├── attribute │ ├── doc.go │ ├── encoder.go │ ├── filter.go │ ├── iterator.go │ ├── key.go │ ├── kv.go │ ├── set.go │ ├── type_string.go │ └── value.go │ ├── baggage │ ├── baggage.go │ ├── context.go │ └── doc.go │ ├── codes │ ├── codes.go │ └── doc.go │ ├── doc.go │ ├── error_handler.go │ ├── get_main_pkgs.sh │ ├── handler.go │ ├── internal │ ├── attribute │ │ └── attribute.go │ ├── baggage │ │ ├── baggage.go │ │ └── context.go │ ├── gen.go │ ├── global │ │ ├── handler.go │ │ ├── instruments.go │ │ ├── internal_logging.go │ │ ├── meter.go │ │ ├── propagator.go │ │ ├── state.go │ │ └── trace.go │ └── rawhelpers.go │ ├── internal_logging.go │ ├── metric.go │ ├── metric │ ├── LICENSE │ ├── asyncfloat64.go │ ├── asyncint64.go │ ├── config.go │ ├── doc.go │ ├── embedded │ │ └── embedded.go │ ├── instrument.go │ ├── meter.go │ ├── syncfloat64.go │ └── syncint64.go │ ├── propagation.go │ ├── propagation │ ├── baggage.go │ ├── doc.go │ ├── propagation.go │ └── trace_context.go │ ├── requirements.txt │ ├── semconv │ └── v1.20.0 │ │ ├── attribute_group.go │ │ ├── doc.go │ │ ├── event.go │ │ ├── exception.go │ │ ├── http.go │ │ ├── resource.go │ │ ├── schema.go │ │ └── trace.go │ ├── trace.go │ ├── trace │ ├── LICENSE │ ├── config.go │ ├── context.go │ ├── doc.go │ ├── embedded │ │ └── embedded.go │ ├── nonrecording.go │ ├── noop.go │ ├── trace.go │ └── tracestate.go │ ├── verify_examples.sh │ ├── version.go │ └── versions.yaml ├── go.uber.org ├── atomic │ ├── .codecov.yml │ ├── .gitignore │ ├── CHANGELOG.md │ ├── LICENSE.txt │ ├── Makefile │ ├── README.md │ ├── bool.go │ ├── bool_ext.go │ ├── doc.go │ ├── duration.go │ ├── duration_ext.go │ ├── error.go │ ├── error_ext.go │ ├── float32.go │ ├── float32_ext.go │ ├── float64.go │ ├── float64_ext.go │ ├── gen.go │ ├── int32.go │ ├── int64.go │ ├── nocmp.go │ ├── pointer_go118.go │ ├── pointer_go118_pre119.go │ ├── pointer_go119.go │ ├── string.go │ ├── string_ext.go │ ├── time.go │ ├── time_ext.go │ ├── uint32.go │ ├── uint64.go │ ├── uintptr.go │ ├── unsafe_pointer.go │ └── value.go ├── multierr │ ├── .codecov.yml │ ├── .gitignore │ ├── CHANGELOG.md │ ├── LICENSE.txt │ ├── Makefile │ ├── README.md │ ├── error.go │ ├── error_post_go120.go │ └── error_pre_go120.go └── zap │ ├── .codecov.yml │ ├── .gitignore │ ├── .golangci.yml │ ├── .readme.tmpl │ ├── CHANGELOG.md │ ├── CODE_OF_CONDUCT.md │ ├── CONTRIBUTING.md │ ├── FAQ.md │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── array.go │ ├── buffer │ ├── buffer.go │ └── pool.go │ ├── checklicense.sh │ ├── config.go │ ├── doc.go │ ├── encoder.go │ ├── error.go │ ├── field.go │ ├── flag.go │ ├── glide.yaml │ ├── global.go │ ├── http_handler.go │ ├── internal │ ├── bufferpool │ │ └── bufferpool.go │ ├── color │ │ └── color.go │ ├── exit │ │ └── exit.go │ ├── level_enabler.go │ ├── pool │ │ └── pool.go │ ├── stacktrace │ │ └── stack.go │ └── ztest │ │ ├── clock.go │ │ ├── doc.go │ │ ├── timeout.go │ │ └── writer.go │ ├── level.go │ ├── logger.go │ ├── options.go │ ├── sink.go │ ├── sugar.go │ ├── time.go │ ├── writer.go │ ├── zapcore │ ├── buffered_write_syncer.go │ ├── clock.go │ ├── console_encoder.go │ ├── core.go │ ├── doc.go │ ├── encoder.go │ ├── entry.go │ ├── error.go │ ├── field.go │ ├── hook.go │ ├── increase_level.go │ ├── json_encoder.go │ ├── lazy_with.go │ ├── level.go │ ├── level_strings.go │ ├── marshaler.go │ ├── memory_encoder.go │ ├── reflected_encoder.go │ ├── sampler.go │ ├── tee.go │ └── write_syncer.go │ └── zaptest │ ├── doc.go │ ├── logger.go │ ├── testingt.go │ ├── timeout.go │ └── writer.go ├── golang.org └── x │ ├── crypto │ ├── LICENSE │ ├── PATENTS │ ├── blowfish │ │ ├── block.go │ │ ├── cipher.go │ │ └── const.go │ ├── chacha20 │ │ ├── chacha_arm64.go │ │ ├── chacha_arm64.s │ │ ├── chacha_generic.go │ │ ├── chacha_noasm.go │ │ ├── chacha_ppc64x.go │ │ ├── chacha_ppc64x.s │ │ ├── chacha_s390x.go │ │ ├── chacha_s390x.s │ │ └── xor.go │ ├── curve25519 │ │ └── curve25519.go │ ├── internal │ │ ├── alias │ │ │ ├── alias.go │ │ │ └── alias_purego.go │ │ └── poly1305 │ │ │ ├── mac_noasm.go │ │ │ ├── poly1305.go │ │ │ ├── sum_amd64.go │ │ │ ├── sum_amd64.s │ │ │ ├── sum_generic.go │ │ │ ├── sum_ppc64x.go │ │ │ ├── sum_ppc64x.s │ │ │ ├── sum_s390x.go │ │ │ └── sum_s390x.s │ └── ssh │ │ ├── buffer.go │ │ ├── certs.go │ │ ├── channel.go │ │ ├── cipher.go │ │ ├── client.go │ │ ├── client_auth.go │ │ ├── common.go │ │ ├── connection.go │ │ ├── doc.go │ │ ├── handshake.go │ │ ├── internal │ │ └── bcrypt_pbkdf │ │ │ └── bcrypt_pbkdf.go │ │ ├── kex.go │ │ ├── keys.go │ │ ├── mac.go │ │ ├── messages.go │ │ ├── mux.go │ │ ├── server.go │ │ ├── session.go │ │ ├── ssh_gss.go │ │ ├── streamlocal.go │ │ ├── tcpip.go │ │ └── transport.go │ ├── net │ ├── LICENSE │ ├── PATENTS │ └── context │ │ └── context.go │ ├── sync │ ├── LICENSE │ ├── PATENTS │ └── errgroup │ │ └── errgroup.go │ ├── sys │ ├── LICENSE │ ├── PATENTS │ ├── cpu │ │ ├── asm_aix_ppc64.s │ │ ├── asm_darwin_x86_gc.s │ │ ├── byteorder.go │ │ ├── cpu.go │ │ ├── cpu_aix.go │ │ ├── cpu_arm.go │ │ ├── cpu_arm64.go │ │ ├── cpu_arm64.s │ │ ├── cpu_darwin_x86.go │ │ ├── cpu_gc_arm64.go │ │ ├── cpu_gc_s390x.go │ │ ├── cpu_gc_x86.go │ │ ├── cpu_gc_x86.s │ │ ├── cpu_gccgo_arm64.go │ │ ├── cpu_gccgo_s390x.go │ │ ├── cpu_gccgo_x86.c │ │ ├── cpu_gccgo_x86.go │ │ ├── cpu_linux.go │ │ ├── cpu_linux_arm.go │ │ ├── cpu_linux_arm64.go │ │ ├── cpu_linux_mips64x.go │ │ ├── cpu_linux_noinit.go │ │ ├── cpu_linux_ppc64x.go │ │ ├── cpu_linux_riscv64.go │ │ ├── cpu_linux_s390x.go │ │ ├── cpu_loong64.go │ │ ├── cpu_mips64x.go │ │ ├── cpu_mipsx.go │ │ ├── cpu_netbsd_arm64.go │ │ ├── cpu_openbsd_arm64.go │ │ ├── cpu_openbsd_arm64.s │ │ ├── cpu_other_arm.go │ │ ├── cpu_other_arm64.go │ │ ├── cpu_other_mips64x.go │ │ ├── cpu_other_ppc64x.go │ │ ├── cpu_other_riscv64.go │ │ ├── cpu_other_x86.go │ │ ├── cpu_ppc64x.go │ │ ├── cpu_riscv64.go │ │ ├── cpu_s390x.go │ │ ├── cpu_s390x.s │ │ ├── cpu_wasm.go │ │ ├── cpu_x86.go │ │ ├── cpu_zos.go │ │ ├── cpu_zos_s390x.go │ │ ├── endian_big.go │ │ ├── endian_little.go │ │ ├── hwcap_linux.go │ │ ├── parse.go │ │ ├── proc_cpuinfo_linux.go │ │ ├── runtime_auxv.go │ │ ├── runtime_auxv_go121.go │ │ ├── syscall_aix_gccgo.go │ │ ├── syscall_aix_ppc64_gc.go │ │ └── syscall_darwin_x86_gc.go │ ├── plan9 │ │ ├── asm.s │ │ ├── asm_plan9_386.s │ │ ├── asm_plan9_amd64.s │ │ ├── asm_plan9_arm.s │ │ ├── const_plan9.go │ │ ├── dir_plan9.go │ │ ├── env_plan9.go │ │ ├── errors_plan9.go │ │ ├── mkall.sh │ │ ├── mkerrors.sh │ │ ├── mksysnum_plan9.sh │ │ ├── pwd_go15_plan9.go │ │ ├── pwd_plan9.go │ │ ├── race.go │ │ ├── race0.go │ │ ├── str.go │ │ ├── syscall.go │ │ ├── syscall_plan9.go │ │ ├── zsyscall_plan9_386.go │ │ ├── zsyscall_plan9_amd64.go │ │ ├── zsyscall_plan9_arm.go │ │ └── zsysnum_plan9.go │ ├── unix │ │ ├── .gitignore │ │ ├── README.md │ │ ├── affinity_linux.go │ │ ├── aliases.go │ │ ├── asm_aix_ppc64.s │ │ ├── asm_bsd_386.s │ │ ├── asm_bsd_amd64.s │ │ ├── asm_bsd_arm.s │ │ ├── asm_bsd_arm64.s │ │ ├── asm_bsd_ppc64.s │ │ ├── asm_bsd_riscv64.s │ │ ├── asm_linux_386.s │ │ ├── asm_linux_amd64.s │ │ ├── asm_linux_arm.s │ │ ├── asm_linux_arm64.s │ │ ├── asm_linux_loong64.s │ │ ├── asm_linux_mips64x.s │ │ ├── asm_linux_mipsx.s │ │ ├── asm_linux_ppc64x.s │ │ ├── asm_linux_riscv64.s │ │ ├── asm_linux_s390x.s │ │ ├── asm_openbsd_mips64.s │ │ ├── asm_solaris_amd64.s │ │ ├── asm_zos_s390x.s │ │ ├── auxv.go │ │ ├── auxv_unsupported.go │ │ ├── bluetooth_linux.go │ │ ├── bpxsvc_zos.go │ │ ├── bpxsvc_zos.s │ │ ├── cap_freebsd.go │ │ ├── constants.go │ │ ├── dev_aix_ppc.go │ │ ├── dev_aix_ppc64.go │ │ ├── dev_darwin.go │ │ ├── dev_dragonfly.go │ │ ├── dev_freebsd.go │ │ ├── dev_linux.go │ │ ├── dev_netbsd.go │ │ ├── dev_openbsd.go │ │ ├── dev_zos.go │ │ ├── dirent.go │ │ ├── endian_big.go │ │ ├── endian_little.go │ │ ├── env_unix.go │ │ ├── fcntl.go │ │ ├── fcntl_darwin.go │ │ ├── fcntl_linux_32bit.go │ │ ├── fdset.go │ │ ├── gccgo.go │ │ ├── gccgo_c.c │ │ ├── gccgo_linux_amd64.go │ │ ├── ifreq_linux.go │ │ ├── ioctl_linux.go │ │ ├── ioctl_signed.go │ │ ├── ioctl_unsigned.go │ │ ├── ioctl_zos.go │ │ ├── mkall.sh │ │ ├── mkerrors.sh │ │ ├── mmap_nomremap.go │ │ ├── mremap.go │ │ ├── pagesize_unix.go │ │ ├── pledge_openbsd.go │ │ ├── ptrace_darwin.go │ │ ├── ptrace_ios.go │ │ ├── race.go │ │ ├── race0.go │ │ ├── readdirent_getdents.go │ │ ├── readdirent_getdirentries.go │ │ ├── sockcmsg_dragonfly.go │ │ ├── sockcmsg_linux.go │ │ ├── sockcmsg_unix.go │ │ ├── sockcmsg_unix_other.go │ │ ├── sockcmsg_zos.go │ │ ├── symaddr_zos_s390x.s │ │ ├── syscall.go │ │ ├── syscall_aix.go │ │ ├── syscall_aix_ppc.go │ │ ├── syscall_aix_ppc64.go │ │ ├── syscall_bsd.go │ │ ├── syscall_darwin.go │ │ ├── syscall_darwin_amd64.go │ │ ├── syscall_darwin_arm64.go │ │ ├── syscall_darwin_libSystem.go │ │ ├── syscall_dragonfly.go │ │ ├── syscall_dragonfly_amd64.go │ │ ├── syscall_freebsd.go │ │ ├── syscall_freebsd_386.go │ │ ├── syscall_freebsd_amd64.go │ │ ├── syscall_freebsd_arm.go │ │ ├── syscall_freebsd_arm64.go │ │ ├── syscall_freebsd_riscv64.go │ │ ├── syscall_hurd.go │ │ ├── syscall_hurd_386.go │ │ ├── syscall_illumos.go │ │ ├── syscall_linux.go │ │ ├── syscall_linux_386.go │ │ ├── syscall_linux_alarm.go │ │ ├── syscall_linux_amd64.go │ │ ├── syscall_linux_amd64_gc.go │ │ ├── syscall_linux_arm.go │ │ ├── syscall_linux_arm64.go │ │ ├── syscall_linux_gc.go │ │ ├── syscall_linux_gc_386.go │ │ ├── syscall_linux_gc_arm.go │ │ ├── syscall_linux_gccgo_386.go │ │ ├── syscall_linux_gccgo_arm.go │ │ ├── syscall_linux_loong64.go │ │ ├── syscall_linux_mips64x.go │ │ ├── syscall_linux_mipsx.go │ │ ├── syscall_linux_ppc.go │ │ ├── syscall_linux_ppc64x.go │ │ ├── syscall_linux_riscv64.go │ │ ├── syscall_linux_s390x.go │ │ ├── syscall_linux_sparc64.go │ │ ├── syscall_netbsd.go │ │ ├── syscall_netbsd_386.go │ │ ├── syscall_netbsd_amd64.go │ │ ├── syscall_netbsd_arm.go │ │ ├── syscall_netbsd_arm64.go │ │ ├── syscall_openbsd.go │ │ ├── syscall_openbsd_386.go │ │ ├── syscall_openbsd_amd64.go │ │ ├── syscall_openbsd_arm.go │ │ ├── syscall_openbsd_arm64.go │ │ ├── syscall_openbsd_libc.go │ │ ├── syscall_openbsd_mips64.go │ │ ├── syscall_openbsd_ppc64.go │ │ ├── syscall_openbsd_riscv64.go │ │ ├── syscall_solaris.go │ │ ├── syscall_solaris_amd64.go │ │ ├── syscall_unix.go │ │ ├── syscall_unix_gc.go │ │ ├── syscall_unix_gc_ppc64x.go │ │ ├── syscall_zos_s390x.go │ │ ├── sysvshm_linux.go │ │ ├── sysvshm_unix.go │ │ ├── sysvshm_unix_other.go │ │ ├── timestruct.go │ │ ├── unveil_openbsd.go │ │ ├── vgetrandom_linux.go │ │ ├── vgetrandom_unsupported.go │ │ ├── xattr_bsd.go │ │ ├── zerrors_aix_ppc.go │ │ ├── zerrors_aix_ppc64.go │ │ ├── zerrors_darwin_amd64.go │ │ ├── zerrors_darwin_arm64.go │ │ ├── zerrors_dragonfly_amd64.go │ │ ├── zerrors_freebsd_386.go │ │ ├── zerrors_freebsd_amd64.go │ │ ├── zerrors_freebsd_arm.go │ │ ├── zerrors_freebsd_arm64.go │ │ ├── zerrors_freebsd_riscv64.go │ │ ├── zerrors_linux.go │ │ ├── zerrors_linux_386.go │ │ ├── zerrors_linux_amd64.go │ │ ├── zerrors_linux_arm.go │ │ ├── zerrors_linux_arm64.go │ │ ├── zerrors_linux_loong64.go │ │ ├── zerrors_linux_mips.go │ │ ├── zerrors_linux_mips64.go │ │ ├── zerrors_linux_mips64le.go │ │ ├── zerrors_linux_mipsle.go │ │ ├── zerrors_linux_ppc.go │ │ ├── zerrors_linux_ppc64.go │ │ ├── zerrors_linux_ppc64le.go │ │ ├── zerrors_linux_riscv64.go │ │ ├── zerrors_linux_s390x.go │ │ ├── zerrors_linux_sparc64.go │ │ ├── zerrors_netbsd_386.go │ │ ├── zerrors_netbsd_amd64.go │ │ ├── zerrors_netbsd_arm.go │ │ ├── zerrors_netbsd_arm64.go │ │ ├── zerrors_openbsd_386.go │ │ ├── zerrors_openbsd_amd64.go │ │ ├── zerrors_openbsd_arm.go │ │ ├── zerrors_openbsd_arm64.go │ │ ├── zerrors_openbsd_mips64.go │ │ ├── zerrors_openbsd_ppc64.go │ │ ├── zerrors_openbsd_riscv64.go │ │ ├── zerrors_solaris_amd64.go │ │ ├── zerrors_zos_s390x.go │ │ ├── zptrace_armnn_linux.go │ │ ├── zptrace_linux_arm64.go │ │ ├── zptrace_mipsnn_linux.go │ │ ├── zptrace_mipsnnle_linux.go │ │ ├── zptrace_x86_linux.go │ │ ├── zsymaddr_zos_s390x.s │ │ ├── zsyscall_aix_ppc.go │ │ ├── zsyscall_aix_ppc64.go │ │ ├── zsyscall_aix_ppc64_gc.go │ │ ├── zsyscall_aix_ppc64_gccgo.go │ │ ├── zsyscall_darwin_amd64.go │ │ ├── zsyscall_darwin_amd64.s │ │ ├── zsyscall_darwin_arm64.go │ │ ├── zsyscall_darwin_arm64.s │ │ ├── zsyscall_dragonfly_amd64.go │ │ ├── zsyscall_freebsd_386.go │ │ ├── zsyscall_freebsd_amd64.go │ │ ├── zsyscall_freebsd_arm.go │ │ ├── zsyscall_freebsd_arm64.go │ │ ├── zsyscall_freebsd_riscv64.go │ │ ├── zsyscall_illumos_amd64.go │ │ ├── zsyscall_linux.go │ │ ├── zsyscall_linux_386.go │ │ ├── zsyscall_linux_amd64.go │ │ ├── zsyscall_linux_arm.go │ │ ├── zsyscall_linux_arm64.go │ │ ├── zsyscall_linux_loong64.go │ │ ├── zsyscall_linux_mips.go │ │ ├── zsyscall_linux_mips64.go │ │ ├── zsyscall_linux_mips64le.go │ │ ├── zsyscall_linux_mipsle.go │ │ ├── zsyscall_linux_ppc.go │ │ ├── zsyscall_linux_ppc64.go │ │ ├── zsyscall_linux_ppc64le.go │ │ ├── zsyscall_linux_riscv64.go │ │ ├── zsyscall_linux_s390x.go │ │ ├── zsyscall_linux_sparc64.go │ │ ├── zsyscall_netbsd_386.go │ │ ├── zsyscall_netbsd_amd64.go │ │ ├── zsyscall_netbsd_arm.go │ │ ├── zsyscall_netbsd_arm64.go │ │ ├── zsyscall_openbsd_386.go │ │ ├── zsyscall_openbsd_386.s │ │ ├── zsyscall_openbsd_amd64.go │ │ ├── zsyscall_openbsd_amd64.s │ │ ├── zsyscall_openbsd_arm.go │ │ ├── zsyscall_openbsd_arm.s │ │ ├── zsyscall_openbsd_arm64.go │ │ ├── zsyscall_openbsd_arm64.s │ │ ├── zsyscall_openbsd_mips64.go │ │ ├── zsyscall_openbsd_mips64.s │ │ ├── zsyscall_openbsd_ppc64.go │ │ ├── zsyscall_openbsd_ppc64.s │ │ ├── zsyscall_openbsd_riscv64.go │ │ ├── zsyscall_openbsd_riscv64.s │ │ ├── zsyscall_solaris_amd64.go │ │ ├── zsyscall_zos_s390x.go │ │ ├── zsysctl_openbsd_386.go │ │ ├── zsysctl_openbsd_amd64.go │ │ ├── zsysctl_openbsd_arm.go │ │ ├── zsysctl_openbsd_arm64.go │ │ ├── zsysctl_openbsd_mips64.go │ │ ├── zsysctl_openbsd_ppc64.go │ │ ├── zsysctl_openbsd_riscv64.go │ │ ├── zsysnum_darwin_amd64.go │ │ ├── zsysnum_darwin_arm64.go │ │ ├── zsysnum_dragonfly_amd64.go │ │ ├── zsysnum_freebsd_386.go │ │ ├── zsysnum_freebsd_amd64.go │ │ ├── zsysnum_freebsd_arm.go │ │ ├── zsysnum_freebsd_arm64.go │ │ ├── zsysnum_freebsd_riscv64.go │ │ ├── zsysnum_linux_386.go │ │ ├── zsysnum_linux_amd64.go │ │ ├── zsysnum_linux_arm.go │ │ ├── zsysnum_linux_arm64.go │ │ ├── zsysnum_linux_loong64.go │ │ ├── zsysnum_linux_mips.go │ │ ├── zsysnum_linux_mips64.go │ │ ├── zsysnum_linux_mips64le.go │ │ ├── zsysnum_linux_mipsle.go │ │ ├── zsysnum_linux_ppc.go │ │ ├── zsysnum_linux_ppc64.go │ │ ├── zsysnum_linux_ppc64le.go │ │ ├── zsysnum_linux_riscv64.go │ │ ├── zsysnum_linux_s390x.go │ │ ├── zsysnum_linux_sparc64.go │ │ ├── zsysnum_netbsd_386.go │ │ ├── zsysnum_netbsd_amd64.go │ │ ├── zsysnum_netbsd_arm.go │ │ ├── zsysnum_netbsd_arm64.go │ │ ├── zsysnum_openbsd_386.go │ │ ├── zsysnum_openbsd_amd64.go │ │ ├── zsysnum_openbsd_arm.go │ │ ├── zsysnum_openbsd_arm64.go │ │ ├── zsysnum_openbsd_mips64.go │ │ ├── zsysnum_openbsd_ppc64.go │ │ ├── zsysnum_openbsd_riscv64.go │ │ ├── zsysnum_zos_s390x.go │ │ ├── ztypes_aix_ppc.go │ │ ├── ztypes_aix_ppc64.go │ │ ├── ztypes_darwin_amd64.go │ │ ├── ztypes_darwin_arm64.go │ │ ├── ztypes_dragonfly_amd64.go │ │ ├── ztypes_freebsd_386.go │ │ ├── ztypes_freebsd_amd64.go │ │ ├── ztypes_freebsd_arm.go │ │ ├── ztypes_freebsd_arm64.go │ │ ├── ztypes_freebsd_riscv64.go │ │ ├── ztypes_linux.go │ │ ├── ztypes_linux_386.go │ │ ├── ztypes_linux_amd64.go │ │ ├── ztypes_linux_arm.go │ │ ├── ztypes_linux_arm64.go │ │ ├── ztypes_linux_loong64.go │ │ ├── ztypes_linux_mips.go │ │ ├── ztypes_linux_mips64.go │ │ ├── ztypes_linux_mips64le.go │ │ ├── ztypes_linux_mipsle.go │ │ ├── ztypes_linux_ppc.go │ │ ├── ztypes_linux_ppc64.go │ │ ├── ztypes_linux_ppc64le.go │ │ ├── ztypes_linux_riscv64.go │ │ ├── ztypes_linux_s390x.go │ │ ├── ztypes_linux_sparc64.go │ │ ├── ztypes_netbsd_386.go │ │ ├── ztypes_netbsd_amd64.go │ │ ├── ztypes_netbsd_arm.go │ │ ├── ztypes_netbsd_arm64.go │ │ ├── ztypes_openbsd_386.go │ │ ├── ztypes_openbsd_amd64.go │ │ ├── ztypes_openbsd_arm.go │ │ ├── ztypes_openbsd_arm64.go │ │ ├── ztypes_openbsd_mips64.go │ │ ├── ztypes_openbsd_ppc64.go │ │ ├── ztypes_openbsd_riscv64.go │ │ ├── ztypes_solaris_amd64.go │ │ └── ztypes_zos_s390x.go │ └── windows │ │ ├── aliases.go │ │ ├── dll_windows.go │ │ ├── env_windows.go │ │ ├── eventlog.go │ │ ├── exec_windows.go │ │ ├── memory_windows.go │ │ ├── mkerrors.bash │ │ ├── mkknownfolderids.bash │ │ ├── mksyscall.go │ │ ├── race.go │ │ ├── race0.go │ │ ├── security_windows.go │ │ ├── service.go │ │ ├── setupapi_windows.go │ │ ├── str.go │ │ ├── syscall.go │ │ ├── syscall_windows.go │ │ ├── types_windows.go │ │ ├── types_windows_386.go │ │ ├── types_windows_amd64.go │ │ ├── types_windows_arm.go │ │ ├── types_windows_arm64.go │ │ ├── zerrors_windows.go │ │ ├── zknownfolderids_windows.go │ │ └── zsyscall_windows.go │ ├── term │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── PATENTS │ ├── README.md │ ├── codereview.cfg │ ├── term.go │ ├── term_plan9.go │ ├── term_unix.go │ ├── term_unix_bsd.go │ ├── term_unix_other.go │ ├── term_unsupported.go │ ├── term_windows.go │ └── terminal.go │ └── text │ ├── LICENSE │ ├── PATENTS │ ├── encoding │ ├── charmap │ │ ├── charmap.go │ │ └── tables.go │ ├── encoding.go │ ├── internal │ │ ├── identifier │ │ │ ├── identifier.go │ │ │ └── mib.go │ │ └── internal.go │ ├── japanese │ │ ├── all.go │ │ ├── eucjp.go │ │ ├── iso2022jp.go │ │ ├── shiftjis.go │ │ └── tables.go │ ├── korean │ │ ├── euckr.go │ │ └── tables.go │ ├── simplifiedchinese │ │ ├── all.go │ │ ├── gbk.go │ │ ├── hzgb2312.go │ │ └── tables.go │ ├── traditionalchinese │ │ ├── big5.go │ │ └── tables.go │ └── unicode │ │ ├── override.go │ │ └── unicode.go │ ├── internal │ └── utf8internal │ │ └── utf8internal.go │ ├── runes │ ├── cond.go │ └── runes.go │ └── transform │ └── transform.go ├── gopkg.in ├── natefinch │ └── lumberjack.v2 │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── chown.go │ │ ├── chown_linux.go │ │ └── lumberjack.go └── yaml.v3 │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── apic.go │ ├── decode.go │ ├── emitterc.go │ ├── encode.go │ ├── parserc.go │ ├── readerc.go │ ├── resolve.go │ ├── scannerc.go │ ├── sorter.go │ ├── writerc.go │ ├── yaml.go │ ├── yamlh.go │ └── yamlprivateh.go └── modules.txt /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @rashiq @meiji163 @timvaillancourt 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | > This is the place to report a bug, ask a question, or suggest an enhancement. 2 | 3 | > This is also the place to make a discussion before creating a PR. 4 | 5 | > If this is a bug report, please provide a test case (e.g., your table definition and gh-ost command) and the error output. 6 | 7 | > Please use markdown to format code or SQL: https://guides.github.com/features/mastering-markdown/ 8 | 9 | > Please label the issue on the right (bug, enhancement, question, etc.). 10 | 11 | > And please understand if this issue is not addressed immediately or in a timeframe you were expecting. 12 | 13 | > Thank you! 14 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | --- 2 | version: 2 3 | updates: 4 | - package-ecosystem: github-actions 5 | directory: "/" 6 | schedule: 7 | interval: daily 8 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: [pull_request] 4 | 5 | jobs: 6 | build: 7 | 8 | runs-on: ubuntu-latest 9 | 10 | steps: 11 | - uses: actions/checkout@v4 12 | 13 | - name: Set up Go 14 | uses: actions/setup-go@v5 15 | with: 16 | go-version-file: go.mod 17 | 18 | - name: Build 19 | run: script/cibuild 20 | 21 | - name: Upload gh-ost binary artifact 22 | uses: actions/upload-artifact@v4 23 | with: 24 | name: gh-ost 25 | path: bin/gh-ost 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.gopath/ 2 | /bin/ 3 | /libexec/ 4 | /.vendor/ 5 | .idea/ 6 | *.tmp 7 | -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- 1 | run: 2 | timeout: 5m 3 | linters: 4 | disable: 5 | - errcheck 6 | enable: 7 | - bodyclose 8 | - containedctx 9 | - contextcheck 10 | - dogsled 11 | - durationcheck 12 | - errname 13 | - errorlint 14 | - gofmt 15 | - misspell 16 | - nilerr 17 | - nilnil 18 | - noctx 19 | - nolintlint 20 | - nosprintfhostport 21 | - prealloc 22 | - rowserrcheck 23 | - sqlclosecheck 24 | - unconvert 25 | - unparam 26 | - unused 27 | - wastedassign 28 | - whitespace 29 | -------------------------------------------------------------------------------- /Dockerfile.packaging: -------------------------------------------------------------------------------- 1 | FROM golang:1.23-bullseye 2 | 3 | RUN apt-get update 4 | RUN apt-get install -y ruby ruby-dev rubygems build-essential 5 | RUN gem install fpm 6 | ENV GOPATH=/tmp/go 7 | 8 | RUN apt-get install -y curl 9 | RUN apt-get install -y rsync 10 | RUN apt-get install -y gcc 11 | RUN apt-get install -y g++ 12 | RUN apt-get install -y bash 13 | RUN apt-get install -y git 14 | RUN apt-get install -y tar 15 | RUN apt-get install -y rpm 16 | 17 | RUN mkdir -p $GOPATH/src/github.com/github/gh-ost 18 | WORKDIR $GOPATH/src/github.com/github/gh-ost 19 | COPY . . 20 | RUN bash build.sh 21 | -------------------------------------------------------------------------------- /Dockerfile.test: -------------------------------------------------------------------------------- 1 | FROM golang:1.23-bullseye 2 | LABEL maintainer="github@github.com" 3 | 4 | RUN apt-get update 5 | RUN apt-get install -y lsb-release 6 | RUN rm -rf /var/lib/apt/lists/* 7 | 8 | COPY . /go/src/github.com/github/gh-ost 9 | WORKDIR /go/src/github.com/github/gh-ost 10 | 11 | CMD ["script/test"] 12 | -------------------------------------------------------------------------------- /doc/images/gh-ost-general-flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/gh-ost/5c88f54b3026af4ffa0a7e9767d47b838706bd49/doc/images/gh-ost-general-flow.png -------------------------------------------------------------------------------- /doc/images/gh-ost-logo-dark-320.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/gh-ost/5c88f54b3026af4ffa0a7e9767d47b838706bd49/doc/images/gh-ost-logo-dark-320.png -------------------------------------------------------------------------------- /doc/images/gh-ost-logo-light-160.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/gh-ost/5c88f54b3026af4ffa0a7e9767d47b838706bd49/doc/images/gh-ost-logo-light-160.png -------------------------------------------------------------------------------- /doc/images/gh-ost-operation-modes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/gh-ost/5c88f54b3026af4ffa0a7e9767d47b838706bd49/doc/images/gh-ost-operation-modes.png -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3.5" 2 | services: 3 | app: 4 | image: app 5 | build: 6 | context: . 7 | dockerfile: Dockerfile.test 8 | -------------------------------------------------------------------------------- /go/binlog/binlog_reader.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2016 GitHub Inc. 3 | See https://github.com/github/gh-ost/blob/master/LICENSE 4 | */ 5 | 6 | package binlog 7 | 8 | // BinlogReader is a general interface whose implementations can choose their methods of reading 9 | // a binary log file and parsing it into binlog entries 10 | type BinlogReader interface { 11 | StreamEvents(canStopStreaming func() bool, entriesChannel chan<- *BinlogEntry) error 12 | Reconnect() error 13 | } 14 | -------------------------------------------------------------------------------- /go/binlog/testdata/mysql-bin.000066: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/gh-ost/5c88f54b3026af4ffa0a7e9767d47b838706bd49/go/binlog/testdata/mysql-bin.000066 -------------------------------------------------------------------------------- /go/binlog/testdata/mysql-bin.000070: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/gh-ost/5c88f54b3026af4ffa0a7e9767d47b838706bd49/go/binlog/testdata/mysql-bin.000070 -------------------------------------------------------------------------------- /go/sql/encoding.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2016 GitHub Inc. 3 | See https://github.com/github/gh-ost/blob/master/LICENSE 4 | */ 5 | 6 | package sql 7 | 8 | import ( 9 | "golang.org/x/text/encoding" 10 | "golang.org/x/text/encoding/charmap" 11 | "golang.org/x/text/encoding/simplifiedchinese" 12 | ) 13 | 14 | type charsetEncoding map[string]encoding.Encoding 15 | 16 | var charsetEncodingMap charsetEncoding 17 | 18 | func init() { 19 | charsetEncodingMap = make(map[string]encoding.Encoding) 20 | // Begin mappings 21 | charsetEncodingMap["latin1"] = charmap.Windows1252 22 | charsetEncodingMap["gbk"] = simplifiedchinese.GBK 23 | } 24 | -------------------------------------------------------------------------------- /localtests/alter-charset-all-dml/extra_args: -------------------------------------------------------------------------------- 1 | --alter='MODIFY `t1` varchar(128) CHARACTER SET utf8mb4 NOT NULL, MODIFY `t2` varchar(128) CHARACTER SET latin2 NOT NULL, MODIFY `tutf8` varchar(128) CHARACTER SET latin1 NOT NULL' 2 | -------------------------------------------------------------------------------- /localtests/alter-charset/extra_args: -------------------------------------------------------------------------------- 1 | --alter='MODIFY `t1` varchar(128) CHARACTER SET utf8mb4 NOT NULL, MODIFY `t2` varchar(128) CHARACTER SET latin2 NOT NULL, MODIFY `tutf8` varchar(128) CHARACTER SET latin1 NOT NULL' 2 | -------------------------------------------------------------------------------- /localtests/attempt-instant-ddl/create.sql: -------------------------------------------------------------------------------- 1 | drop table if exists gh_ost_test; 2 | create table gh_ost_test ( 3 | id int auto_increment, 4 | i int not null, 5 | color varchar(32), 6 | primary key(id) 7 | ) auto_increment=1; 8 | 9 | drop event if exists gh_ost_test; 10 | 11 | insert into gh_ost_test values (null, 11, 'red'); 12 | insert into gh_ost_test values (null, 13, 'green'); 13 | insert into gh_ost_test values (null, 17, 'blue'); 14 | -------------------------------------------------------------------------------- /localtests/attempt-instant-ddl/extra_args: -------------------------------------------------------------------------------- 1 | --attempt-instant-ddl 2 | -------------------------------------------------------------------------------- /localtests/autoinc-copy-deletes-user-defined/create.sql: -------------------------------------------------------------------------------- 1 | drop event if exists gh_ost_test; 2 | 3 | drop table if exists gh_ost_test; 4 | create table gh_ost_test ( 5 | id int auto_increment, 6 | i int not null, 7 | primary key(id) 8 | ) auto_increment=1; 9 | 10 | insert into gh_ost_test values (NULL, 11); 11 | insert into gh_ost_test values (NULL, 13); 12 | insert into gh_ost_test values (NULL, 17); 13 | insert into gh_ost_test values (NULL, 23); 14 | insert into gh_ost_test values (NULL, 29); 15 | insert into gh_ost_test values (NULL, 31); 16 | insert into gh_ost_test values (NULL, 37); 17 | delete from gh_ost_test where id>=5; 18 | -------------------------------------------------------------------------------- /localtests/autoinc-copy-deletes-user-defined/expect_table_structure: -------------------------------------------------------------------------------- 1 | AUTO_INCREMENT=7 2 | -------------------------------------------------------------------------------- /localtests/autoinc-copy-deletes-user-defined/extra_args: -------------------------------------------------------------------------------- 1 | --alter='AUTO_INCREMENT=7' 2 | -------------------------------------------------------------------------------- /localtests/autoinc-copy-deletes/create.sql: -------------------------------------------------------------------------------- 1 | drop event if exists gh_ost_test; 2 | 3 | drop table if exists gh_ost_test; 4 | create table gh_ost_test ( 5 | id int auto_increment, 6 | i int not null, 7 | primary key(id) 8 | ) auto_increment=1; 9 | 10 | insert into gh_ost_test values (NULL, 11); 11 | insert into gh_ost_test values (NULL, 13); 12 | insert into gh_ost_test values (NULL, 17); 13 | insert into gh_ost_test values (NULL, 23); 14 | insert into gh_ost_test values (NULL, 29); 15 | insert into gh_ost_test values (NULL, 31); 16 | insert into gh_ost_test values (NULL, 37); 17 | delete from gh_ost_test where id>=5; 18 | -------------------------------------------------------------------------------- /localtests/autoinc-copy-deletes/expect_table_structure: -------------------------------------------------------------------------------- 1 | AUTO_INCREMENT=8 2 | -------------------------------------------------------------------------------- /localtests/autoinc-copy-simple/create.sql: -------------------------------------------------------------------------------- 1 | drop event if exists gh_ost_test; 2 | 3 | drop table if exists gh_ost_test; 4 | create table gh_ost_test ( 5 | id int auto_increment, 6 | i int not null, 7 | primary key(id) 8 | ) auto_increment=1; 9 | 10 | insert into gh_ost_test values (NULL, 11); 11 | insert into gh_ost_test values (NULL, 13); 12 | insert into gh_ost_test values (NULL, 17); 13 | insert into gh_ost_test values (NULL, 23); 14 | -------------------------------------------------------------------------------- /localtests/autoinc-copy-simple/expect_table_structure: -------------------------------------------------------------------------------- 1 | AUTO_INCREMENT=5 2 | -------------------------------------------------------------------------------- /localtests/autoinc-zero-value/create.sql: -------------------------------------------------------------------------------- 1 | drop table if exists gh_ost_test; 2 | create table gh_ost_test ( 3 | id int auto_increment, 4 | i int not null, 5 | primary key(id) 6 | ) auto_increment=1; 7 | 8 | set session sql_mode='NO_AUTO_VALUE_ON_ZERO'; 9 | insert into gh_ost_test values (0, 23); 10 | -------------------------------------------------------------------------------- /localtests/bigint-change-nullable/extra_args: -------------------------------------------------------------------------------- 1 | --alter="change val val bigint" 2 | -------------------------------------------------------------------------------- /localtests/bit-add/create.sql: -------------------------------------------------------------------------------- 1 | drop table if exists gh_ost_test; 2 | create table gh_ost_test ( 3 | id int auto_increment, 4 | i int not null, 5 | primary key(id) 6 | ) auto_increment=1; 7 | 8 | drop event if exists gh_ost_test; 9 | delimiter ;; 10 | create event gh_ost_test 11 | on schedule every 1 second 12 | starts current_timestamp 13 | ends current_timestamp + interval 60 second 14 | on completion not preserve 15 | enable 16 | do 17 | begin 18 | insert into gh_ost_test values (null, 11); 19 | insert into gh_ost_test values (null, 13); 20 | end ;; 21 | -------------------------------------------------------------------------------- /localtests/bit-add/extra_args: -------------------------------------------------------------------------------- 1 | --alter="add column is_good bit null default 0" 2 | -------------------------------------------------------------------------------- /localtests/bit-add/ghost_columns: -------------------------------------------------------------------------------- 1 | id, i 2 | -------------------------------------------------------------------------------- /localtests/bit-add/orig_columns: -------------------------------------------------------------------------------- 1 | id, i 2 | -------------------------------------------------------------------------------- /localtests/bit-dml/extra_args: -------------------------------------------------------------------------------- 1 | --alter="modify column is_good bit not null default 0" --approve-renamed-columns 2 | -------------------------------------------------------------------------------- /localtests/convert-utf8mb4/extra_args: -------------------------------------------------------------------------------- 1 | --alter='convert to character set utf8mb4' 2 | -------------------------------------------------------------------------------- /localtests/datetime-1970/extra_args: -------------------------------------------------------------------------------- 1 | --alter='add column name varchar(1)' 2 | -------------------------------------------------------------------------------- /localtests/datetime-1970/ghost_columns: -------------------------------------------------------------------------------- 1 | id, create_time, update_time, counter 2 | -------------------------------------------------------------------------------- /localtests/datetime-1970/orig_columns: -------------------------------------------------------------------------------- 1 | id, create_time, update_time, counter 2 | -------------------------------------------------------------------------------- /localtests/datetime-1970/sql_mode: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/gh-ost/5c88f54b3026af4ffa0a7e9767d47b838706bd49/localtests/datetime-1970/sql_mode -------------------------------------------------------------------------------- /localtests/datetime-to-timestamp-pk-fail/expect_failure: -------------------------------------------------------------------------------- 1 | No support at this time for converting a column from DATETIME to TIMESTAMP that is also part of the chosen unique key 2 | -------------------------------------------------------------------------------- /localtests/datetime-to-timestamp-pk-fail/extra_args: -------------------------------------------------------------------------------- 1 | --alter="change column t t timestamp default current_timestamp" 2 | -------------------------------------------------------------------------------- /localtests/datetime-to-timestamp/extra_args: -------------------------------------------------------------------------------- 1 | --alter="change column t t timestamp null" 2 | -------------------------------------------------------------------------------- /localtests/datetime-with-zero/create.sql: -------------------------------------------------------------------------------- 1 | drop table if exists gh_ost_test; 2 | create table gh_ost_test ( 3 | id int unsigned auto_increment, 4 | i int not null, 5 | dt datetime, 6 | primary key(id) 7 | ) auto_increment=1; 8 | 9 | drop event if exists gh_ost_test; 10 | delimiter ;; 11 | create event gh_ost_test 12 | on schedule every 1 second 13 | starts current_timestamp 14 | ends current_timestamp + interval 60 second 15 | on completion not preserve 16 | enable 17 | do 18 | begin 19 | insert into gh_ost_test values (null, 7, '2010-10-20 10:20:30'); 20 | end ;; 21 | -------------------------------------------------------------------------------- /localtests/datetime-with-zero/extra_args: -------------------------------------------------------------------------------- 1 | --allow-zero-in-date --alter="change column dt dt datetime not null default '1970-00-00 00:00:00'" 2 | -------------------------------------------------------------------------------- /localtests/discard-fk/extra_args: -------------------------------------------------------------------------------- 1 | --discard-foreign-keys 2 | -------------------------------------------------------------------------------- /localtests/discard-fk/ignore_versions: -------------------------------------------------------------------------------- 1 | Percona -------------------------------------------------------------------------------- /localtests/drop-null-add-not-null/extra_args: -------------------------------------------------------------------------------- 1 | --alter="drop column c1, add column c1 int not null default 47" 2 | -------------------------------------------------------------------------------- /localtests/drop-null-add-not-null/ghost_columns: -------------------------------------------------------------------------------- 1 | c2 2 | -------------------------------------------------------------------------------- /localtests/drop-null-add-not-null/orig_columns: -------------------------------------------------------------------------------- 1 | c2 2 | -------------------------------------------------------------------------------- /localtests/enum-to-varchar/extra_args: -------------------------------------------------------------------------------- 1 | --alter="change e e varchar(32) not null default ''" 2 | -------------------------------------------------------------------------------- /localtests/enum/extra_args: -------------------------------------------------------------------------------- 1 | --alter="change e e enum('red', 'green', 'blue', 'orange', 'yellow') null default null collate 'utf8_bin'" 2 | -------------------------------------------------------------------------------- /localtests/existing-datetime-with-zero/extra_args: -------------------------------------------------------------------------------- 1 | --allow-zero-in-date --alter="engine=innodb" 2 | -------------------------------------------------------------------------------- /localtests/fail-datetime-with-zero/create.sql: -------------------------------------------------------------------------------- 1 | drop table if exists gh_ost_test; 2 | create table gh_ost_test ( 3 | id int unsigned auto_increment, 4 | i int not null, 5 | dt datetime, 6 | primary key(id) 7 | ) auto_increment=1; 8 | 9 | drop event if exists gh_ost_test; 10 | delimiter ;; 11 | create event gh_ost_test 12 | on schedule every 1 second 13 | starts current_timestamp 14 | ends current_timestamp + interval 60 second 15 | on completion not preserve 16 | enable 17 | do 18 | begin 19 | insert into gh_ost_test values (null, 7, '2010-10-20 10:20:30'); 20 | end ;; 21 | -------------------------------------------------------------------------------- /localtests/fail-datetime-with-zero/expect_failure: -------------------------------------------------------------------------------- 1 | Invalid default value for 'dt' 2 | -------------------------------------------------------------------------------- /localtests/fail-datetime-with-zero/extra_args: -------------------------------------------------------------------------------- 1 | --alter="change column dt dt datetime not null default '1970-00-00 00:00:00'" 2 | -------------------------------------------------------------------------------- /localtests/fail-drop-pk/expect_failure: -------------------------------------------------------------------------------- 1 | No PRIMARY nor UNIQUE key found in table 2 | -------------------------------------------------------------------------------- /localtests/fail-drop-pk/extra_args: -------------------------------------------------------------------------------- 1 | --alter="change id id int, drop primary key" 2 | -------------------------------------------------------------------------------- /localtests/fail-existing-datetime-with-zero/expect_failure: -------------------------------------------------------------------------------- 1 | Invalid default value for 'dt' 2 | -------------------------------------------------------------------------------- /localtests/fail-existing-datetime-with-zero/extra_args: -------------------------------------------------------------------------------- 1 | --alter="engine=innodb" 2 | -------------------------------------------------------------------------------- /localtests/fail-fk-parent/destroy.sql: -------------------------------------------------------------------------------- 1 | drop table if exists gh_ost_test_child; 2 | -------------------------------------------------------------------------------- /localtests/fail-fk-parent/expect_failure: -------------------------------------------------------------------------------- 1 | Parent-side foreign keys are not supported 2 | -------------------------------------------------------------------------------- /localtests/fail-fk-parent/extra_args: -------------------------------------------------------------------------------- 1 | --discard-foreign-keys 2 | -------------------------------------------------------------------------------- /localtests/fail-fk-parent/ignore_versions: -------------------------------------------------------------------------------- 1 | Percona -------------------------------------------------------------------------------- /localtests/fail-fk/expect_failure: -------------------------------------------------------------------------------- 1 | Child-side foreign keys are not supported. Bailing out 2 | -------------------------------------------------------------------------------- /localtests/fail-fk/ignore_versions: -------------------------------------------------------------------------------- 1 | Percona -------------------------------------------------------------------------------- /localtests/fail-float-unique-key/create.sql: -------------------------------------------------------------------------------- 1 | drop table if exists gh_ost_test; 2 | create table gh_ost_test ( 3 | f float, 4 | i int not null, 5 | ts timestamp default current_timestamp, 6 | dt datetime, 7 | key i_idx(i), 8 | unique key f_uidx(f) 9 | ) auto_increment=1; 10 | 11 | drop event if exists gh_ost_test; 12 | -------------------------------------------------------------------------------- /localtests/fail-float-unique-key/expect_failure: -------------------------------------------------------------------------------- 1 | No shared unique key can be found 2 | -------------------------------------------------------------------------------- /localtests/fail-float-unique-key/extra_args: -------------------------------------------------------------------------------- 1 | --alter="add column v varchar(32)" 2 | -------------------------------------------------------------------------------- /localtests/fail-no-shared-uk/expect_failure: -------------------------------------------------------------------------------- 1 | No shared unique key can be found after ALTER 2 | -------------------------------------------------------------------------------- /localtests/fail-no-shared-uk/extra_args: -------------------------------------------------------------------------------- 1 | --alter="drop primary key, add primary key (i)" 2 | -------------------------------------------------------------------------------- /localtests/fail-no-unique-key/create.sql: -------------------------------------------------------------------------------- 1 | drop table if exists gh_ost_test; 2 | create table gh_ost_test ( 3 | i int not null, 4 | ts timestamp default current_timestamp, 5 | dt datetime, 6 | key i_idx(i) 7 | ) auto_increment=1; 8 | 9 | drop event if exists gh_ost_test; 10 | -------------------------------------------------------------------------------- /localtests/fail-no-unique-key/expect_failure: -------------------------------------------------------------------------------- 1 | No PRIMARY nor UNIQUE key found in table 2 | -------------------------------------------------------------------------------- /localtests/fail-no-unique-key/extra_args: -------------------------------------------------------------------------------- 1 | --alter="add column v varchar(32)" 2 | -------------------------------------------------------------------------------- /localtests/fail-rename-table/expect_failure: -------------------------------------------------------------------------------- 1 | ALTER statement seems to RENAME the table 2 | -------------------------------------------------------------------------------- /localtests/fail-rename-table/extra_args: -------------------------------------------------------------------------------- 1 | --alter="rename as something_else" 2 | -------------------------------------------------------------------------------- /localtests/gbk-charset/extra_args: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/gh-ost/5c88f54b3026af4ffa0a7e9767d47b838706bd49/localtests/gbk-charset/extra_args -------------------------------------------------------------------------------- /localtests/generated-columns-add/extra_args: -------------------------------------------------------------------------------- 1 | --alter="add column sum_ab int as (a + b) virtual not null" 2 | -------------------------------------------------------------------------------- /localtests/generated-columns-add/ghost_columns: -------------------------------------------------------------------------------- 1 | id, a, b 2 | -------------------------------------------------------------------------------- /localtests/generated-columns-add/ignore_versions: -------------------------------------------------------------------------------- 1 | Percona -------------------------------------------------------------------------------- /localtests/generated-columns-add/order_by: -------------------------------------------------------------------------------- 1 | id 2 | -------------------------------------------------------------------------------- /localtests/generated-columns-add/orig_columns: -------------------------------------------------------------------------------- 1 | id, a, b 2 | -------------------------------------------------------------------------------- /localtests/generated-columns-rename/extra_args: -------------------------------------------------------------------------------- 1 | --alter="change sum_ab total_ab int as (a + b) virtual not null" --approve-renamed-columns 2 | -------------------------------------------------------------------------------- /localtests/generated-columns-rename/ignore_versions: -------------------------------------------------------------------------------- 1 | Percona -------------------------------------------------------------------------------- /localtests/generated-columns-unique/ignore_versions: -------------------------------------------------------------------------------- 1 | Percona -------------------------------------------------------------------------------- /localtests/generated-columns/ignore_versions: -------------------------------------------------------------------------------- 1 | Percona -------------------------------------------------------------------------------- /localtests/geometry/ignore_versions: -------------------------------------------------------------------------------- 1 | Percona -------------------------------------------------------------------------------- /localtests/keyword-column/create.sql: -------------------------------------------------------------------------------- 1 | drop table if exists gh_ost_test; 2 | create table gh_ost_test ( 3 | id int auto_increment, 4 | i int not null, 5 | color varchar(32), 6 | primary key(id) 7 | ) auto_increment=1; 8 | 9 | drop event if exists gh_ost_test; 10 | 11 | insert into gh_ost_test values (null, 11, 'red'); 12 | insert into gh_ost_test values (null, 13, 'green'); 13 | insert into gh_ost_test values (null, 17, 'blue'); 14 | -------------------------------------------------------------------------------- /localtests/keyword-column/extra_args: -------------------------------------------------------------------------------- 1 | --alter='add column `index` int unsigned' \ 2 | -------------------------------------------------------------------------------- /localtests/keyword-column/ghost_columns: -------------------------------------------------------------------------------- 1 | id, i, color 2 | -------------------------------------------------------------------------------- /localtests/keyword-column/orig_columns: -------------------------------------------------------------------------------- 1 | id, i, color 2 | -------------------------------------------------------------------------------- /localtests/modify-change-case-pk/expect_failure: -------------------------------------------------------------------------------- 1 | No shared unique key can be found after ALTER 2 | -------------------------------------------------------------------------------- /localtests/modify-change-case-pk/extra_args: -------------------------------------------------------------------------------- 1 | --alter="modify ID int" 2 | -------------------------------------------------------------------------------- /localtests/modify-change-case/extra_args: -------------------------------------------------------------------------------- 1 | --alter="modify C2 int not null default 0" 2 | -------------------------------------------------------------------------------- /localtests/panic-on-warnings-duplicate-unique-values-on-column-type-change/expect_failure: -------------------------------------------------------------------------------- 1 | Warning: Duplicate entry 'John' for key 2 | Warning: Duplicate entry 'John' for key -------------------------------------------------------------------------------- /localtests/panic-on-warnings-duplicate-unique-values-on-column-type-change/extra_args: -------------------------------------------------------------------------------- 1 | --panic-on-warnings --alter "modify column name varchar(4) not null" -------------------------------------------------------------------------------- /localtests/panic-on-warnings-duplicate-values-for-unique-index/expect_failure: -------------------------------------------------------------------------------- 1 | Warning: Duplicate entry 'John' -------------------------------------------------------------------------------- /localtests/panic-on-warnings-duplicate-values-for-unique-index/extra_args: -------------------------------------------------------------------------------- 1 | --panic-on-warnings --alter "add unique index name_index(name)" -------------------------------------------------------------------------------- /localtests/rename-inserts-only/extra_args: -------------------------------------------------------------------------------- 1 | --alter="change column c2 c3 int not null" --approve-renamed-columns 2 | -------------------------------------------------------------------------------- /localtests/rename-none-column/create.sql: -------------------------------------------------------------------------------- 1 | drop table if exists gh_ost_test; 2 | create table gh_ost_test ( 3 | id int auto_increment, 4 | c1 int not null, 5 | primary key (id) 6 | ) auto_increment=1; 7 | 8 | drop event if exists gh_ost_test; 9 | -------------------------------------------------------------------------------- /localtests/rename-none-column/extra_args: -------------------------------------------------------------------------------- 1 | --alter="add column exchange double comment 'exchange rate used for pay in your own currency'" 2 | -------------------------------------------------------------------------------- /localtests/rename-none-comment/create.sql: -------------------------------------------------------------------------------- 1 | drop table if exists gh_ost_test; 2 | create table gh_ost_test ( 3 | id int auto_increment, 4 | c1 int not null, 5 | primary key (id) 6 | ) auto_increment=1; 7 | 8 | drop event if exists gh_ost_test; 9 | -------------------------------------------------------------------------------- /localtests/rename-none-comment/extra_args: -------------------------------------------------------------------------------- 1 | --alter="add column exchange_rate double comment 'change rate used for pay in your own currency'" 2 | -------------------------------------------------------------------------------- /localtests/rename-reorder-column/extra_args: -------------------------------------------------------------------------------- 1 | --alter="change column c2 c2a int not null after id" --approve-renamed-columns 2 | -------------------------------------------------------------------------------- /localtests/rename-reorder-column/ghost_columns: -------------------------------------------------------------------------------- 1 | id, c1, c2a 2 | -------------------------------------------------------------------------------- /localtests/rename-reorder-column/orig_columns: -------------------------------------------------------------------------------- 1 | id, c1, c2 2 | -------------------------------------------------------------------------------- /localtests/rename-reorder-columns/extra_args: -------------------------------------------------------------------------------- 1 | --alter="change column c2 c2a int not null, change column c3 c3 int not null after id" --approve-renamed-columns 2 | -------------------------------------------------------------------------------- /localtests/rename-reorder-columns/ghost_columns: -------------------------------------------------------------------------------- 1 | id, c1, c2a, c3 2 | -------------------------------------------------------------------------------- /localtests/rename-reorder-columns/orig_columns: -------------------------------------------------------------------------------- 1 | id, c1, c2, c3 2 | -------------------------------------------------------------------------------- /localtests/rename/extra_args: -------------------------------------------------------------------------------- 1 | --alter="change column c2 c3 int not null" --approve-renamed-columns 2 | -------------------------------------------------------------------------------- /localtests/reorder-columns/extra_args: -------------------------------------------------------------------------------- 1 | --alter="change column c2 c2 int not null after id" 2 | -------------------------------------------------------------------------------- /localtests/reorder-columns/ghost_columns: -------------------------------------------------------------------------------- 1 | id, c1, c2 2 | -------------------------------------------------------------------------------- /localtests/reorder-columns/orig_columns: -------------------------------------------------------------------------------- 1 | id, c1, c2 2 | -------------------------------------------------------------------------------- /localtests/shared-uk/extra_args: -------------------------------------------------------------------------------- 1 | --alter="drop primary key, add primary key (id, i)" 2 | -------------------------------------------------------------------------------- /localtests/spatial/ignore_versions: -------------------------------------------------------------------------------- 1 | Percona -------------------------------------------------------------------------------- /localtests/swap-pk-uk/extra_args: -------------------------------------------------------------------------------- 1 | --alter="drop primary key, drop key its_uidx, add primary key (i, ts), add unique key id_uidx(id)" 2 | -------------------------------------------------------------------------------- /localtests/swap-pk-uk/order_by: -------------------------------------------------------------------------------- 1 | id 2 | -------------------------------------------------------------------------------- /localtests/swap-uk-uk/extra_args: -------------------------------------------------------------------------------- 1 | --panic-on-warnings --alter="drop key id_uidx, drop key its_uidx, add unique key its2_uidx(i, ts), add unique key id2_uidx(id)" 2 | -------------------------------------------------------------------------------- /localtests/swap-uk-uk/order_by: -------------------------------------------------------------------------------- 1 | id 2 | -------------------------------------------------------------------------------- /localtests/swap-uk/extra_args: -------------------------------------------------------------------------------- 1 | --alter="drop primary key, add unique key(id)" 2 | -------------------------------------------------------------------------------- /localtests/timestamp-to-datetime/extra_args: -------------------------------------------------------------------------------- 1 | --alter="change column t t datetime not null" 2 | -------------------------------------------------------------------------------- /localtests/trigger-advanced-features/extra_args: -------------------------------------------------------------------------------- 1 | --include-triggers --trigger-suffix=_ght --remove-trigger-suffix-if-exists -------------------------------------------------------------------------------- /localtests/trivial/create.sql: -------------------------------------------------------------------------------- 1 | drop table if exists gh_ost_test; 2 | create table gh_ost_test ( 3 | id int auto_increment, 4 | i int not null, 5 | color varchar(32), 6 | primary key(id) 7 | ) auto_increment=1; 8 | 9 | drop event if exists gh_ost_test; 10 | 11 | insert into gh_ost_test values (null, 11, 'red'); 12 | insert into gh_ost_test values (null, 13, 'green'); 13 | insert into gh_ost_test values (null, 17, 'blue'); 14 | -------------------------------------------------------------------------------- /localtests/trivial/extra_args: -------------------------------------------------------------------------------- 1 | --throttle-query='select false' \ 2 | -------------------------------------------------------------------------------- /localtests/tz-datetime-ts/extra_args: -------------------------------------------------------------------------------- 1 | --alter="change column t t timestamp not null default current_timestamp" 2 | -------------------------------------------------------------------------------- /localtests/unsigned-rename/extra_args: -------------------------------------------------------------------------------- 1 | --alter="change column iu iu_renamed int unsigned not null" --approve-renamed-columns 2 | -------------------------------------------------------------------------------- /localtests/unsigned-rename/ghost_columns: -------------------------------------------------------------------------------- 1 | id, i, bi, iu_renamed, biu 2 | -------------------------------------------------------------------------------- /localtests/unsigned-rename/orig_columns: -------------------------------------------------------------------------------- 1 | id, i, bi, iu, biu 2 | -------------------------------------------------------------------------------- /localtests/unsigned-reorder/extra_args: -------------------------------------------------------------------------------- 1 | --alter="change column iu iu int unsigned not null after id" --approve-renamed-columns 2 | -------------------------------------------------------------------------------- /localtests/unsigned-reorder/ghost_columns: -------------------------------------------------------------------------------- 1 | id, i, bi, iu, biu 2 | -------------------------------------------------------------------------------- /localtests/unsigned-reorder/orig_columns: -------------------------------------------------------------------------------- 1 | id, i, bi, iu, biu 2 | -------------------------------------------------------------------------------- /resources/hooks-sample/gh-ost-on-before-cut-over-hook: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Sample hook file for gh-ost-on-before-cut-over 4 | 5 | echo "$(date) gh-ost-on-before-cut-over $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME" >> /tmp/gh-ost.log 6 | -------------------------------------------------------------------------------- /resources/hooks-sample/gh-ost-on-before-row-copy-hook: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Sample hook file for gh-ost-on-before-row-copy 4 | 5 | echo "$(date) gh-ost-on-before-row-copy $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME" >> /tmp/gh-ost.log 6 | -------------------------------------------------------------------------------- /resources/hooks-sample/gh-ost-on-begin-postponed-hook: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Sample hook file for gh-ost-on-begin-postponed 4 | 5 | echo "$(date) gh-ost-on-begin-postponed $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME" >> /tmp/gh-ost.log 6 | -------------------------------------------------------------------------------- /resources/hooks-sample/gh-ost-on-failure-hook: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Sample hook file for gh-ost-on-failure 4 | 5 | echo "$(date) gh-ost-on-failure $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME; ghost: $GH_OST_OLD_TABLE_NAME" >> /tmp/gh-ost.log 6 | -------------------------------------------------------------------------------- /resources/hooks-sample/gh-ost-on-interactive-command-hook: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Sample hook file for gh-ost-on-interactive-command 4 | 5 | echo "$(date) gh-ost-on-interactive-command $GH_OST_COMMAND" >> /tmp/gh-ost.log 6 | -------------------------------------------------------------------------------- /resources/hooks-sample/gh-ost-on-row-copy-complete-hook: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Sample hook file for gh-ost-on-row-copy-complete 4 | 5 | echo "$(date) gh-ost-on-row-copy-complete $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME" >> /tmp/gh-ost.log 6 | -------------------------------------------------------------------------------- /resources/hooks-sample/gh-ost-on-rowcount-complete-hook: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Sample hook file for gh-ost-on-rowcount-complete 4 | 5 | echo "$(date) gh-ost-on-rowcount-complete $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME" >> /tmp/gh-ost.log 6 | -------------------------------------------------------------------------------- /resources/hooks-sample/gh-ost-on-start-replication-hook: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Sample hook file for gh-ost-on-start-replication 4 | # Useful for RDS/Aurora setups, see https://github.com/github/gh-ost/issues/163 5 | 6 | echo "$(date) gh-ost-on-start-replication $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME $GH_OST_MIGRATED_HOST" >> /tmp/gh-ost.log 7 | -------------------------------------------------------------------------------- /resources/hooks-sample/gh-ost-on-startup-hook: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Sample hook file for gh-ost-on-startup 4 | 5 | echo "$(date) gh-ost-on-startup $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME" >> /tmp/gh-ost.log 6 | -------------------------------------------------------------------------------- /resources/hooks-sample/gh-ost-on-status-hook: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Sample hook file for gh-ost-on-status 4 | 5 | echo "$(date) gh-ost-on-status; elapsed: ${GH_OST_ELAPSED_SECONDS}; msg: ${GH_OST_STATUS}" >> /tmp/gh-ost.log 6 | -------------------------------------------------------------------------------- /resources/hooks-sample/gh-ost-on-stop-replication-hook: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Sample hook file for gh-ost-on-stop-replication 4 | # Useful for RDS/Aurora setups, see https://github.com/github/gh-ost/issues/163 5 | 6 | echo "$(date) gh-ost-on-stop-replication $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME $GH_OST_MIGRATED_HOST" >> /tmp/gh-ost.log 7 | -------------------------------------------------------------------------------- /resources/hooks-sample/gh-ost-on-success-hook: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Sample hook file for gh-ost-on-success 4 | 5 | echo "$(date) gh-ost-on-success $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME" >> /tmp/gh-ost.log 6 | -------------------------------------------------------------------------------- /resources/hooks-sample/gh-ost-on-success-hook-2: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Sample hook file for gh-ost-on-success 4 | 5 | echo "$(date) gh-ost-on-success $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME -- this message should show on the gh-ost log" 6 | echo "$(date) gh-ost-on-success copied $GH_OST_COPIED_ROWS rows in $GH_OST_ELAPSED_COPY_SECONDS seconds. Total runtime was $GH_OST_ELAPSED_SECONDS seconds" 7 | -------------------------------------------------------------------------------- /resources/hooks-sample/gh-ost-on-validated-hook: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Sample hook file for gh-ost-on-validated 4 | 5 | echo "$(date) gh-ost-on-validated $GH_OST_DATABASE_NAME.$GH_OST_TABLE_NAME" >> /tmp/gh-ost.log 6 | -------------------------------------------------------------------------------- /script/bootstrap: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | # Make sure we have the version of Go we want to depend on, either from the 6 | # system or one we grab ourselves. 7 | # If executing from within Dockerfile then this assumption is inherently true, since we use a `golang` docker image. 8 | . script/ensure-go-installed 9 | 10 | # Since we want to be able to build this outside of GOPATH, we set it 11 | # up so it points back to us and go is none the wiser 12 | 13 | set -x 14 | rm -rf .gopath 15 | mkdir -p .gopath/src/github.com/github 16 | ln -s "$PWD" .gopath/src/github.com/github/gh-ost 17 | export GOPATH=$PWD/.gopath:$GOPATH 18 | -------------------------------------------------------------------------------- /script/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | . script/bootstrap 6 | 7 | mkdir -p bin 8 | bindir="$PWD"/bin 9 | scriptdir="$PWD"/script 10 | 11 | # We have a few binaries that we want to build, so let's put them into bin/ 12 | 13 | version=$(git rev-parse HEAD) 14 | describe=$(git describe --tags --always --dirty) 15 | 16 | export GOPATH="$PWD/.gopath" 17 | cd .gopath/src/github.com/github/gh-ost 18 | 19 | # We put the binaries directly into the bindir, because we have no need for shim wrappers 20 | go build -o "$bindir/gh-ost" -ldflags "-X main.AppVersion=${version} -X main.BuildDescribe=${describe}" ./go/cmd/gh-ost/main.go 21 | -------------------------------------------------------------------------------- /script/cibuild: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | script/test 4 | -------------------------------------------------------------------------------- /script/ensure-golangci-lint-installed: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # See https://github.com/golangci/golangci-lint/releases 4 | GOLANGCI_RELEASE=v1.61.0 5 | GOLANGCI_INSTALL_SCRIPT=https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh 6 | 7 | if [ -z "$GOPATH" ]; then 8 | echo "GOPATH must be set" 9 | exit 1 10 | fi 11 | 12 | if [ ! -x "$GOPATH/bin/golangci-lint" ]; then 13 | echo "Installing golangci-lint $GOLANGCI_RELEASE using script: $GOLANGCI_INSTALL_SCRIPT" 14 | curl -sSfL $GOLANGCI_INSTALL_SCRIPT | sh -s -- -b $(go env GOPATH)/bin $GOLANGCI_RELEASE 15 | fi 16 | 17 | $GOPATH/bin/golangci-lint --version 18 | -------------------------------------------------------------------------------- /script/gh-ost-test-mysql-master: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # This executes a command on the mysql-primary docker container created 4 | # from localtests/docker-compose.yml. It's used by localtests/test.sh. 5 | 6 | MYSQL_PWD=opensesame mysql -uroot -h0.0.0.0 -P3307 "$@" 7 | -------------------------------------------------------------------------------- /script/gh-ost-test-mysql-replica: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # This executes a command on the mysql-replica docker container created 4 | # from localtests/docker-compose.yml. It's used by localtests/test.sh. 5 | 6 | MYSQL_PWD=opensesame mysql -uroot -h0.0.0.0 -P3308 "$@" 7 | -------------------------------------------------------------------------------- /script/go: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | . script/bootstrap 6 | 7 | mkdir -p bin 8 | bindir="$PWD"/bin 9 | 10 | cd .gopath/src/github.com/github/gh-ost 11 | go "$@" 12 | -------------------------------------------------------------------------------- /script/lint: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | . script/ensure-go-installed 6 | . script/ensure-golangci-lint-installed 7 | 8 | if [ -x "$GOPATH/bin/golangci-lint" ]; then 9 | echo "Running golangci-lint run" 10 | $GOPATH/bin/golangci-lint run --config=.golangci.yml 11 | echo "Done, exit code: $?" 12 | else 13 | echo "ERROR: cannot find golangci-lint at $GOPATH/bin" 14 | exit 1 15 | fi 16 | -------------------------------------------------------------------------------- /script/test: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | . script/bootstrap 6 | 7 | echo "Verifying code is formatted via 'gofmt -s -w go/'" 8 | gofmt -s -w go/ 9 | git diff --exit-code --quiet 10 | 11 | echo "Building" 12 | script/build 13 | 14 | cd .gopath/src/github.com/github/gh-ost 15 | 16 | echo "Running unit tests" 17 | go test -v -covermode=atomic ./go/... 18 | -------------------------------------------------------------------------------- /test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | retval=0 4 | 5 | for testsuite in base mysql sql 6 | do 7 | pushd go/${testsuite} > /dev/null; 8 | 9 | go test $*; 10 | 11 | [ $? -ne 0 ] && retval=1 12 | popd > /dev/null; 13 | done 14 | 15 | exit $retval 16 | -------------------------------------------------------------------------------- /tmp/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/gh-ost/5c88f54b3026af4ffa0a7e9767d47b838706bd49/tmp/.gitkeep -------------------------------------------------------------------------------- /vendor/dario.cat/mergo/.deepsource.toml: -------------------------------------------------------------------------------- 1 | version = 1 2 | 3 | test_patterns = [ 4 | "*_test.go" 5 | ] 6 | 7 | [[analyzers]] 8 | name = "go" 9 | enabled = true 10 | 11 | [analyzers.meta] 12 | import_path = "dario.cat/mergo" -------------------------------------------------------------------------------- /vendor/dario.cat/mergo/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | arch: 3 | - amd64 4 | - ppc64le 5 | install: 6 | - go get -t 7 | - go get golang.org/x/tools/cmd/cover 8 | - go get github.com/mattn/goveralls 9 | script: 10 | - go test -race -v ./... 11 | after_script: 12 | - $HOME/gopath/bin/goveralls -service=travis-ci -repotoken $COVERALLS_TOKEN 13 | -------------------------------------------------------------------------------- /vendor/dario.cat/mergo/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | | Version | Supported | 6 | | ------- | ------------------ | 7 | | 0.3.x | :white_check_mark: | 8 | | < 0.3 | :x: | 9 | 10 | ## Security contact information 11 | 12 | To report a security vulnerability, please use the 13 | [Tidelift security contact](https://tidelift.com/security). 14 | Tidelift will coordinate the fix and disclosure. 15 | -------------------------------------------------------------------------------- /vendor/filippo.io/edwards25519/field/fe_amd64.go: -------------------------------------------------------------------------------- 1 | // Code generated by command: go run fe_amd64_asm.go -out ../fe_amd64.s -stubs ../fe_amd64.go -pkg field. DO NOT EDIT. 2 | 3 | //go:build amd64 && gc && !purego 4 | // +build amd64,gc,!purego 5 | 6 | package field 7 | 8 | // feMul sets out = a * b. It works like feMulGeneric. 9 | // 10 | //go:noescape 11 | func feMul(out *Element, a *Element, b *Element) 12 | 13 | // feSquare sets out = a * a. It works like feSquareGeneric. 14 | // 15 | //go:noescape 16 | func feSquare(out *Element, a *Element) 17 | -------------------------------------------------------------------------------- /vendor/filippo.io/edwards25519/field/fe_amd64_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 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 !amd64 || !gc || purego 6 | // +build !amd64 !gc purego 7 | 8 | package field 9 | 10 | func feMul(v, x, y *Element) { feMulGeneric(v, x, y) } 11 | 12 | func feSquare(v, x *Element) { feSquareGeneric(v, x) } 13 | -------------------------------------------------------------------------------- /vendor/filippo.io/edwards25519/field/fe_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 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 arm64 && gc && !purego 6 | // +build arm64,gc,!purego 7 | 8 | package field 9 | 10 | //go:noescape 11 | func carryPropagate(v *Element) 12 | 13 | func (v *Element) carryPropagate() *Element { 14 | carryPropagate(v) 15 | return v 16 | } 17 | -------------------------------------------------------------------------------- /vendor/filippo.io/edwards25519/field/fe_arm64_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !arm64 || !gc || purego 6 | // +build !arm64 !gc purego 7 | 8 | package field 9 | 10 | func (v *Element) carryPropagate() *Element { 11 | return v.carryPropagateGeneric() 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/go-ansiterm/context.go: -------------------------------------------------------------------------------- 1 | package ansiterm 2 | 3 | type ansiContext struct { 4 | currentChar byte 5 | paramBuffer []byte 6 | interBuffer []byte 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/go-ansiterm/ground_state.go: -------------------------------------------------------------------------------- 1 | package ansiterm 2 | 3 | type groundState struct { 4 | baseState 5 | } 6 | 7 | func (gs groundState) Handle(b byte) (s state, e error) { 8 | gs.parser.context.currentChar = b 9 | 10 | nextState, err := gs.baseState.Handle(b) 11 | if nextState != nil || err != nil { 12 | return nextState, err 13 | } 14 | 15 | switch { 16 | case sliceContains(printables, b): 17 | return gs, gs.parser.print() 18 | 19 | case sliceContains(executors, b): 20 | return gs, gs.parser.execute() 21 | } 22 | 23 | return gs, nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/go-ansiterm/utilities.go: -------------------------------------------------------------------------------- 1 | package ansiterm 2 | 3 | import ( 4 | "strconv" 5 | ) 6 | 7 | func sliceContains(bytes []byte, b byte) bool { 8 | for _, v := range bytes { 9 | if v == b { 10 | return true 11 | } 12 | } 13 | 14 | return false 15 | } 16 | 17 | func convertBytesToInteger(bytes []byte) int { 18 | s := string(bytes) 19 | i, _ := strconv.Atoi(s) 20 | return i 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/go-ansiterm/winterm/utilities.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package winterm 4 | 5 | // AddInRange increments a value by the passed quantity while ensuring the values 6 | // always remain within the supplied min / max range. 7 | func addInRange(n int16, increment int16, min int16, max int16) int16 { 8 | return ensureInRange(n+increment, min, max) 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/Masterminds/semver/version_fuzz.go: -------------------------------------------------------------------------------- 1 | // +build gofuzz 2 | 3 | package semver 4 | 5 | func Fuzz(data []byte) int { 6 | if _, err := NewVersion(string(data)); err != nil { 7 | return 0 8 | } 9 | return 1 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/.gitignore: -------------------------------------------------------------------------------- 1 | .vscode/ 2 | 3 | *.exe 4 | 5 | # testing 6 | testdata 7 | 8 | # go workspaces 9 | go.work 10 | go.work.sum 11 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @microsoft/containerplat 2 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/internal/fs/doc.go: -------------------------------------------------------------------------------- 1 | // This package contains Win32 filesystem functionality. 2 | package fs 3 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/internal/fs/security.go: -------------------------------------------------------------------------------- 1 | package fs 2 | 3 | // https://learn.microsoft.com/en-us/windows/win32/api/winnt/ne-winnt-security_impersonation_level 4 | type SecurityImpersonationLevel int32 // C default enums underlying type is `int`, which is Go `int32` 5 | 6 | // Impersonation levels 7 | const ( 8 | SecurityAnonymous SecurityImpersonationLevel = 0 9 | SecurityIdentification SecurityImpersonationLevel = 1 10 | SecurityImpersonation SecurityImpersonationLevel = 2 11 | SecurityDelegation SecurityImpersonationLevel = 3 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/pkg/guid/guid_nonwindows.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package guid 5 | 6 | // GUID represents a GUID/UUID. It has the same structure as 7 | // golang.org/x/sys/windows.GUID so that it can be used with functions expecting 8 | // that type. It is defined as its own type as that is only available to builds 9 | // targeted at `windows`. The representation matches that used by native Windows 10 | // code. 11 | type GUID struct { 12 | Data1 uint32 13 | Data2 uint16 14 | Data3 uint16 15 | Data4 [8]byte 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/pkg/guid/guid_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | package guid 5 | 6 | import "golang.org/x/sys/windows" 7 | 8 | // GUID represents a GUID/UUID. It has the same structure as 9 | // golang.org/x/sys/windows.GUID so that it can be used with functions expecting 10 | // that type. It is defined as its own type so that stringification and 11 | // marshaling can be supported. The representation matches that used by native 12 | // Windows code. 13 | type GUID windows.GUID 14 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/syscall.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | 3 | package winio 4 | 5 | //go:generate go run github.com/Microsoft/go-winio/tools/mkwinsyscall -output zsyscall_windows.go ./*.go 6 | -------------------------------------------------------------------------------- /vendor/github.com/cenkalti/backoff/v4/.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 | # IDEs 25 | .idea/ 26 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/containerd/NOTICE: -------------------------------------------------------------------------------- 1 | Docker 2 | Copyright 2012-2015 Docker, Inc. 3 | 4 | This product includes software developed at Docker, Inc. (https://www.docker.com). 5 | 6 | The following is courtesy of our legal counsel: 7 | 8 | 9 | Use and transfer of Docker may be subject to certain restrictions by the 10 | United States and other governments. 11 | It is your responsibility to ensure that your use and/or transfer does not 12 | violate applicable laws. 13 | 14 | For more information, please see https://www.bis.doc.gov 15 | 16 | See also https://www.apache.org/dev/crypto.html and/or seek legal counsel. 17 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/platforms/.gitattributes: -------------------------------------------------------------------------------- 1 | *.go text eol=lf -------------------------------------------------------------------------------- /vendor/github.com/cpuguy83/dockercfg/README.md: -------------------------------------------------------------------------------- 1 | ### github.com/cpuguy83/dockercfg 2 | Go library to load docker CLI configs, auths, etc. with minimal deps. 3 | So far the only deps are on the stdlib. 4 | 5 | ### Usage 6 | See the [godoc](https://godoc.org/github.com/cpuguy83/dockercfg) for API details. 7 | 8 | I'm currently using this in [zapp](https://github.com/cpuguy83/zapp/blob/d25c43d4cd7ccf29fba184aafbc720a753e1a15d/main.go#L58-L83) to handle registry auth instead of always asking the user to enter it. -------------------------------------------------------------------------------- /vendor/github.com/distribution/reference/.gitattributes: -------------------------------------------------------------------------------- 1 | *.go text eol=lf 2 | -------------------------------------------------------------------------------- /vendor/github.com/distribution/reference/.gitignore: -------------------------------------------------------------------------------- 1 | # Cover profiles 2 | *.out 3 | -------------------------------------------------------------------------------- /vendor/github.com/distribution/reference/.golangci.yml: -------------------------------------------------------------------------------- 1 | linters: 2 | enable: 3 | - bodyclose 4 | - dupword # Checks for duplicate words in the source code 5 | - gofmt 6 | - goimports 7 | - ineffassign 8 | - misspell 9 | - revive 10 | - staticcheck 11 | - unconvert 12 | - unused 13 | - vet 14 | disable: 15 | - errcheck 16 | 17 | run: 18 | deadline: 2m 19 | -------------------------------------------------------------------------------- /vendor/github.com/distribution/reference/CODE-OF-CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | We follow the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md). 4 | 5 | Please contact the [CNCF Code of Conduct Committee](mailto:conduct@cncf.io) in order to report violations of the Code of Conduct. 6 | -------------------------------------------------------------------------------- /vendor/github.com/distribution/reference/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Reporting a Vulnerability 4 | 5 | The maintainers take security seriously. If you discover a security issue, please bring it to their attention right away! 6 | 7 | Please DO NOT file a public issue, instead send your report privately to cncf-distribution-security@lists.cncf.io. 8 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/swagger-gen.yaml: -------------------------------------------------------------------------------- 1 | 2 | layout: 3 | models: 4 | - name: definition 5 | source: asset:model 6 | target: "{{ joinFilePath .Target .ModelPackage }}" 7 | file_name: "{{ (snakize (pascalize .Name)) }}.go" 8 | operations: 9 | - name: handler 10 | source: asset:serverOperation 11 | target: "{{ joinFilePath .Target .APIPackage .Package }}" 12 | file_name: "{{ (snakize (pascalize .Name)) }}.go" 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/checkpoint/list.go: -------------------------------------------------------------------------------- 1 | package checkpoint 2 | 3 | // Summary represents the details of a checkpoint when listing endpoints. 4 | type Summary struct { 5 | // Name is the name of the checkpoint. 6 | Name string 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/checkpoint/options.go: -------------------------------------------------------------------------------- 1 | package checkpoint 2 | 3 | // CreateOptions holds parameters to create a checkpoint from a container. 4 | type CreateOptions struct { 5 | CheckpointID string 6 | CheckpointDir string 7 | Exit bool 8 | } 9 | 10 | // ListOptions holds parameters to list checkpoints for a container. 11 | type ListOptions struct { 12 | CheckpointDir string 13 | } 14 | 15 | // DeleteOptions holds parameters to delete a checkpoint from a container. 16 | type DeleteOptions struct { 17 | CheckpointID string 18 | CheckpointDir string 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/change_type.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // ChangeType Kind of change 7 | // 8 | // Can be one of: 9 | // 10 | // - `0`: Modified ("C") 11 | // - `1`: Added ("A") 12 | // - `2`: Deleted ("D") 13 | // 14 | // swagger:model ChangeType 15 | type ChangeType uint8 16 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/change_types.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | const ( 4 | // ChangeModify represents the modify operation. 5 | ChangeModify ChangeType = 0 6 | // ChangeAdd represents the add operation. 7 | ChangeAdd ChangeType = 1 8 | // ChangeDelete represents the delete operation. 9 | ChangeDelete ChangeType = 2 10 | ) 11 | 12 | func (ct ChangeType) String() string { 13 | switch ct { 14 | case ChangeModify: 15 | return "C" 16 | case ChangeAdd: 17 | return "A" 18 | case ChangeDelete: 19 | return "D" 20 | default: 21 | return "" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/create_request.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | import "github.com/docker/docker/api/types/network" 4 | 5 | // CreateRequest is the request message sent to the server for container 6 | // create calls. It is a config wrapper that holds the container [Config] 7 | // (portable) and the corresponding [HostConfig] (non-portable) and 8 | // [network.NetworkingConfig]. 9 | type CreateRequest struct { 10 | *Config 11 | HostConfig *HostConfig `json:"HostConfig,omitempty"` 12 | NetworkingConfig *network.NetworkingConfig `json:"NetworkingConfig,omitempty"` 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/create_response.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // CreateResponse ContainerCreateResponse 7 | // 8 | // OK response to ContainerCreate operation 9 | // swagger:model CreateResponse 10 | type CreateResponse struct { 11 | 12 | // The ID of the created container 13 | // Required: true 14 | ID string `json:"Id"` 15 | 16 | // Warnings encountered when creating the container 17 | // Required: true 18 | Warnings []string `json:"Warnings"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/errors.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | type errInvalidParameter struct{ error } 4 | 5 | func (e *errInvalidParameter) InvalidParameter() {} 6 | 7 | func (e *errInvalidParameter) Unwrap() error { 8 | return e.error 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/filesystem_change.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // FilesystemChange Change in the container's filesystem. 7 | // 8 | // swagger:model FilesystemChange 9 | type FilesystemChange struct { 10 | 11 | // kind 12 | // Required: true 13 | Kind ChangeType `json:"Kind"` 14 | 15 | // Path to file or directory that has changed. 16 | // 17 | // Required: true 18 | Path string `json:"Path"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/wait_exit_error.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // WaitExitError container waiting error, if any 7 | // swagger:model WaitExitError 8 | type WaitExitError struct { 9 | 10 | // Details of an error 11 | Message string `json:"Message,omitempty"` 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/wait_response.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // WaitResponse ContainerWaitResponse 7 | // 8 | // OK response to ContainerWait operation 9 | // swagger:model WaitResponse 10 | type WaitResponse struct { 11 | 12 | // error 13 | Error *WaitExitError `json:"Error,omitempty"` 14 | 15 | // Exit code of the container 16 | // Required: true 17 | StatusCode int64 `json:"StatusCode"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/error_response.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // ErrorResponse Represents an error. 7 | // swagger:model ErrorResponse 8 | type ErrorResponse struct { 9 | 10 | // The error message. 11 | // Required: true 12 | Message string `json:"message"` 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/error_response_ext.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // Error returns the error message 4 | func (e ErrorResponse) Error() string { 5 | return e.Message 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/id_response.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // IDResponse Response to an API call that returns just an Id 7 | // swagger:model IdResponse 8 | type IDResponse struct { 9 | 10 | // The id of the newly created object. 11 | // Required: true 12 | ID string `json:"Id"` 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/image/delete_response.go: -------------------------------------------------------------------------------- 1 | package image 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // DeleteResponse delete response 7 | // swagger:model DeleteResponse 8 | type DeleteResponse struct { 9 | 10 | // The image ID of an image that was deleted 11 | Deleted string `json:"Deleted,omitempty"` 12 | 13 | // The image ID of an image that was untagged 14 | Untagged string `json:"Untagged,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/network/create_response.go: -------------------------------------------------------------------------------- 1 | package network 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // CreateResponse NetworkCreateResponse 7 | // 8 | // OK response to NetworkCreate operation 9 | // swagger:model CreateResponse 10 | type CreateResponse struct { 11 | 12 | // The ID of the created network. 13 | // Required: true 14 | ID string `json:"Id"` 15 | 16 | // Warnings encountered when creating the container 17 | // Required: true 18 | Warning string `json:"Warning"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/plugin_interface_type.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // PluginInterfaceType plugin interface type 7 | // swagger:model PluginInterfaceType 8 | type PluginInterfaceType struct { 9 | 10 | // capability 11 | // Required: true 12 | Capability string `json:"Capability"` 13 | 14 | // prefix 15 | // Required: true 16 | Prefix string `json:"Prefix"` 17 | 18 | // version 19 | // Required: true 20 | Version string `json:"Version"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/swarm/runtime/gen.go: -------------------------------------------------------------------------------- 1 | //go:generate protoc --gogofaster_out=import_path=github.com/docker/docker/api/types/swarm/runtime:. plugin.proto 2 | 3 | package runtime // import "github.com/docker/docker/api/types/swarm/runtime" 4 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/swarm/runtime/plugin.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | // PluginSpec defines the base payload which clients can specify for creating 4 | // a service with the plugin runtime. 5 | message PluginSpec { 6 | string name = 1; 7 | string remote = 2; 8 | repeated PluginPrivilege privileges = 3; 9 | bool disabled = 4; 10 | repeated string env = 5; 11 | } 12 | 13 | // PluginPrivilege describes a permission the user has to accept 14 | // upon installing a plugin. 15 | message PluginPrivilege { 16 | string name = 1; 17 | string description = 2; 18 | repeated string value = 3; 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/swarm/service_update_response.go: -------------------------------------------------------------------------------- 1 | package swarm 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // ServiceUpdateResponse service update response 7 | // swagger:model ServiceUpdateResponse 8 | type ServiceUpdateResponse struct { 9 | 10 | // Optional warning messages 11 | Warnings []string `json:"Warnings"` 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/volume/list_response.go: -------------------------------------------------------------------------------- 1 | package volume 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // ListResponse VolumeListResponse 7 | // 8 | // Volume list response 9 | // swagger:model ListResponse 10 | type ListResponse struct { 11 | 12 | // List of volumes 13 | Volumes []*Volume `json:"Volumes"` 14 | 15 | // Warnings that occurred when fetching the list of volumes. 16 | // 17 | Warnings []string `json:"Warnings"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/volume/options.go: -------------------------------------------------------------------------------- 1 | package volume // import "github.com/docker/docker/api/types/volume" 2 | 3 | import "github.com/docker/docker/api/types/filters" 4 | 5 | // ListOptions holds parameters to list volumes. 6 | type ListOptions struct { 7 | Filters filters.Args 8 | } 9 | 10 | // PruneReport contains the response for Engine API: 11 | // POST "/volumes/prune" 12 | type PruneReport struct { 13 | VolumesDeleted []string 14 | SpaceReclaimed uint64 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/volume/volume_update.go: -------------------------------------------------------------------------------- 1 | package volume // import "github.com/docker/docker/api/types/volume" 2 | 3 | // UpdateOptions is configuration to update a Volume with. 4 | type UpdateOptions struct { 5 | // Spec is the ClusterVolumeSpec to update the volume to. 6 | Spec *ClusterVolumeSpec `json:"Spec,omitempty"` 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/build_cancel.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | ) 7 | 8 | // BuildCancel requests the daemon to cancel the ongoing build request. 9 | func (cli *Client) BuildCancel(ctx context.Context, id string) error { 10 | query := url.Values{} 11 | query.Set("id", id) 12 | 13 | serverResp, err := cli.post(ctx, "/build/cancel", query, nil, nil) 14 | ensureReaderClosed(serverResp) 15 | return err 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/checkpoint_create.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/docker/docker/api/types/checkpoint" 7 | ) 8 | 9 | // CheckpointCreate creates a checkpoint from the given container with the given name 10 | func (cli *Client) CheckpointCreate(ctx context.Context, container string, options checkpoint.CreateOptions) error { 11 | resp, err := cli.post(ctx, "/containers/"+container+"/checkpoints", nil, options, nil) 12 | ensureReaderClosed(resp) 13 | return err 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/client_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | 3 | package client // import "github.com/docker/docker/client" 4 | 5 | // DefaultDockerHost defines OS-specific default host if the DOCKER_HOST 6 | // (EnvOverrideHost) environment variable is unset or empty. 7 | const DefaultDockerHost = "unix:///var/run/docker.sock" 8 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/client_windows.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | // DefaultDockerHost defines OS-specific default host if the DOCKER_HOST 4 | // (EnvOverrideHost) environment variable is unset or empty. 5 | const DefaultDockerHost = "npipe:////./pipe/docker_engine" 6 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/config_remove.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // ConfigRemove removes a config. 6 | func (cli *Client) ConfigRemove(ctx context.Context, id string) error { 7 | if err := cli.NewVersionError(ctx, "1.30", "config remove"); err != nil { 8 | return err 9 | } 10 | resp, err := cli.delete(ctx, "/configs/"+id, nil, nil) 11 | defer ensureReaderClosed(resp) 12 | return err 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/container_export.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "io" 6 | "net/url" 7 | ) 8 | 9 | // ContainerExport retrieves the raw contents of a container 10 | // and returns them as an io.ReadCloser. It's up to the caller 11 | // to close the stream. 12 | func (cli *Client) ContainerExport(ctx context.Context, containerID string) (io.ReadCloser, error) { 13 | serverResp, err := cli.get(ctx, "/containers/"+containerID+"/export", url.Values{}, nil) 14 | if err != nil { 15 | return nil, err 16 | } 17 | 18 | return serverResp.body, nil 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/container_kill.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | ) 7 | 8 | // ContainerKill terminates the container process but does not remove the container from the docker host. 9 | func (cli *Client) ContainerKill(ctx context.Context, containerID, signal string) error { 10 | query := url.Values{} 11 | if signal != "" { 12 | query.Set("signal", signal) 13 | } 14 | 15 | resp, err := cli.post(ctx, "/containers/"+containerID+"/kill", query, nil, nil) 16 | ensureReaderClosed(resp) 17 | return err 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/container_pause.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // ContainerPause pauses the main process of a given container without terminating it. 6 | func (cli *Client) ContainerPause(ctx context.Context, containerID string) error { 7 | resp, err := cli.post(ctx, "/containers/"+containerID+"/pause", nil, nil, nil) 8 | ensureReaderClosed(resp) 9 | return err 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/container_rename.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | ) 7 | 8 | // ContainerRename changes the name of a given container. 9 | func (cli *Client) ContainerRename(ctx context.Context, containerID, newContainerName string) error { 10 | query := url.Values{} 11 | query.Set("name", newContainerName) 12 | resp, err := cli.post(ctx, "/containers/"+containerID+"/rename", query, nil, nil) 13 | ensureReaderClosed(resp) 14 | return err 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/container_unpause.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // ContainerUnpause resumes the process execution within a container 6 | func (cli *Client) ContainerUnpause(ctx context.Context, containerID string) error { 7 | resp, err := cli.post(ctx, "/containers/"+containerID+"/unpause", nil, nil, nil) 8 | ensureReaderClosed(resp) 9 | return err 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/interface_stable.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | // APIClient is an interface that clients that talk with a docker server must implement. 4 | type APIClient interface { 5 | CommonAPIClient 6 | apiClientExperimental 7 | } 8 | 9 | // Ensure that Client always implements APIClient. 10 | var _ APIClient = &Client{} 11 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/network_remove.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // NetworkRemove removes an existent network from the docker host. 6 | func (cli *Client) NetworkRemove(ctx context.Context, networkID string) error { 7 | resp, err := cli.delete(ctx, "/networks/"+networkID, nil, nil) 8 | defer ensureReaderClosed(resp) 9 | return err 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/node_remove.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | 7 | "github.com/docker/docker/api/types" 8 | ) 9 | 10 | // NodeRemove removes a Node. 11 | func (cli *Client) NodeRemove(ctx context.Context, nodeID string, options types.NodeRemoveOptions) error { 12 | query := url.Values{} 13 | if options.Force { 14 | query.Set("force", "1") 15 | } 16 | 17 | resp, err := cli.delete(ctx, "/nodes/"+nodeID, query, nil) 18 | defer ensureReaderClosed(resp) 19 | return err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/node_update.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | 7 | "github.com/docker/docker/api/types/swarm" 8 | ) 9 | 10 | // NodeUpdate updates a Node. 11 | func (cli *Client) NodeUpdate(ctx context.Context, nodeID string, version swarm.Version, node swarm.NodeSpec) error { 12 | query := url.Values{} 13 | query.Set("version", version.String()) 14 | resp, err := cli.post(ctx, "/nodes/"+nodeID+"/update", query, node, nil) 15 | ensureReaderClosed(resp) 16 | return err 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/plugin_disable.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | 7 | "github.com/docker/docker/api/types" 8 | ) 9 | 10 | // PluginDisable disables a plugin 11 | func (cli *Client) PluginDisable(ctx context.Context, name string, options types.PluginDisableOptions) error { 12 | query := url.Values{} 13 | if options.Force { 14 | query.Set("force", "1") 15 | } 16 | resp, err := cli.post(ctx, "/plugins/"+name+"/disable", query, nil, nil) 17 | ensureReaderClosed(resp) 18 | return err 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/plugin_enable.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | "strconv" 7 | 8 | "github.com/docker/docker/api/types" 9 | ) 10 | 11 | // PluginEnable enables a plugin 12 | func (cli *Client) PluginEnable(ctx context.Context, name string, options types.PluginEnableOptions) error { 13 | query := url.Values{} 14 | query.Set("timeout", strconv.Itoa(options.Timeout)) 15 | 16 | resp, err := cli.post(ctx, "/plugins/"+name+"/enable", query, nil, nil) 17 | ensureReaderClosed(resp) 18 | return err 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/plugin_push.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "io" 6 | "net/http" 7 | 8 | "github.com/docker/docker/api/types/registry" 9 | ) 10 | 11 | // PluginPush pushes a plugin to a registry 12 | func (cli *Client) PluginPush(ctx context.Context, name string, registryAuth string) (io.ReadCloser, error) { 13 | resp, err := cli.post(ctx, "/plugins/"+name+"/push", nil, nil, http.Header{ 14 | registry.AuthHeader: {registryAuth}, 15 | }) 16 | if err != nil { 17 | return nil, err 18 | } 19 | return resp.body, nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/plugin_remove.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | 7 | "github.com/docker/docker/api/types" 8 | ) 9 | 10 | // PluginRemove removes a plugin 11 | func (cli *Client) PluginRemove(ctx context.Context, name string, options types.PluginRemoveOptions) error { 12 | query := url.Values{} 13 | if options.Force { 14 | query.Set("force", "1") 15 | } 16 | 17 | resp, err := cli.delete(ctx, "/plugins/"+name, query, nil) 18 | defer ensureReaderClosed(resp) 19 | return err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/plugin_set.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | ) 6 | 7 | // PluginSet modifies settings for an existing plugin 8 | func (cli *Client) PluginSet(ctx context.Context, name string, args []string) error { 9 | resp, err := cli.post(ctx, "/plugins/"+name+"/set", nil, args, nil) 10 | ensureReaderClosed(resp) 11 | return err 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/secret_remove.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // SecretRemove removes a secret. 6 | func (cli *Client) SecretRemove(ctx context.Context, id string) error { 7 | if err := cli.NewVersionError(ctx, "1.25", "secret remove"); err != nil { 8 | return err 9 | } 10 | resp, err := cli.delete(ctx, "/secrets/"+id, nil, nil) 11 | defer ensureReaderClosed(resp) 12 | return err 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/service_remove.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // ServiceRemove kills and removes a service. 6 | func (cli *Client) ServiceRemove(ctx context.Context, serviceID string) error { 7 | resp, err := cli.delete(ctx, "/services/"+serviceID, nil, nil) 8 | defer ensureReaderClosed(resp) 9 | return err 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/swarm_join.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/docker/docker/api/types/swarm" 7 | ) 8 | 9 | // SwarmJoin joins the swarm. 10 | func (cli *Client) SwarmJoin(ctx context.Context, req swarm.JoinRequest) error { 11 | resp, err := cli.post(ctx, "/swarm/join", nil, req, nil) 12 | ensureReaderClosed(resp) 13 | return err 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/swarm_leave.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | ) 7 | 8 | // SwarmLeave leaves the swarm. 9 | func (cli *Client) SwarmLeave(ctx context.Context, force bool) error { 10 | query := url.Values{} 11 | if force { 12 | query.Set("force", "1") 13 | } 14 | resp, err := cli.post(ctx, "/swarm/leave", query, nil, nil) 15 | ensureReaderClosed(resp) 16 | return err 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/swarm_unlock.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/docker/docker/api/types/swarm" 7 | ) 8 | 9 | // SwarmUnlock unlocks locked swarm. 10 | func (cli *Client) SwarmUnlock(ctx context.Context, req swarm.UnlockRequest) error { 11 | serverResp, err := cli.post(ctx, "/swarm/unlock", nil, req, nil) 12 | ensureReaderClosed(serverResp) 13 | return err 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/archive_other.go: -------------------------------------------------------------------------------- 1 | //go:build !linux 2 | 3 | package archive // import "github.com/docker/docker/pkg/archive" 4 | 5 | func getWhiteoutConverter(format WhiteoutFormat) tarWhiteoutConverter { 6 | return nil 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/copy_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | 3 | package archive // import "github.com/docker/docker/pkg/archive" 4 | 5 | import ( 6 | "path/filepath" 7 | ) 8 | 9 | func normalizePath(path string) string { 10 | return filepath.ToSlash(path) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/copy_windows.go: -------------------------------------------------------------------------------- 1 | package archive // import "github.com/docker/docker/pkg/archive" 2 | 3 | import ( 4 | "path/filepath" 5 | ) 6 | 7 | func normalizePath(path string) string { 8 | return filepath.FromSlash(path) 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/diff_windows.go: -------------------------------------------------------------------------------- 1 | package archive 2 | 3 | // overrideUmask is a no-op on windows. 4 | func overrideUmask(newmask int) func() { 5 | return func() {} 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/path_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | 3 | package archive 4 | 5 | // checkSystemDriveAndRemoveDriveLetter is the non-Windows implementation 6 | // of CheckSystemDriveAndRemoveDriveLetter 7 | func checkSystemDriveAndRemoveDriveLetter(path string) (string, error) { 8 | return path, nil 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/time_linux.go: -------------------------------------------------------------------------------- 1 | package archive // import "github.com/docker/docker/pkg/archive" 2 | 3 | import ( 4 | "syscall" 5 | "time" 6 | ) 7 | 8 | func timeToTimespec(time time.Time) (ts syscall.Timespec) { 9 | if time.IsZero() { 10 | // Return UTIME_OMIT special value 11 | ts.Sec = 0 12 | ts.Nsec = (1 << 30) - 2 13 | return 14 | } 15 | return syscall.NsecToTimespec(time.UnixNano()) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/time_unsupported.go: -------------------------------------------------------------------------------- 1 | //go:build !linux 2 | 3 | package archive // import "github.com/docker/docker/pkg/archive" 4 | 5 | import ( 6 | "syscall" 7 | "time" 8 | ) 9 | 10 | func timeToTimespec(time time.Time) (ts syscall.Timespec) { 11 | nsec := int64(0) 12 | if !time.IsZero() { 13 | nsec = time.UnixNano() 14 | } 15 | return syscall.NsecToTimespec(nsec) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/idtools/usergroupadd_unsupported.go: -------------------------------------------------------------------------------- 1 | //go:build !linux 2 | 3 | package idtools // import "github.com/docker/docker/pkg/idtools" 4 | 5 | import "fmt" 6 | 7 | // AddNamespaceRangesUser takes a name and finds an unused uid, gid pair 8 | // and calls the appropriate helper function to add the group and then 9 | // the user to the group in /etc/group and /etc/passwd respectively. 10 | func AddNamespaceRangesUser(name string) (int, int, error) { 11 | return -1, -1, fmt.Errorf("No support for adding users or groups on this OS") 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/args_windows.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import ( 4 | "strings" 5 | 6 | "golang.org/x/sys/windows" 7 | ) 8 | 9 | // EscapeArgs makes a Windows-style escaped command line from a set of arguments 10 | func EscapeArgs(args []string) string { 11 | escapedArgs := make([]string, len(args)) 12 | for i, a := range args { 13 | escapedArgs[i] = windows.EscapeArg(a) 14 | } 15 | return strings.Join(escapedArgs, " ") 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/chtimes_nowindows.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | 3 | package system // import "github.com/docker/docker/pkg/system" 4 | 5 | import ( 6 | "time" 7 | ) 8 | 9 | // setCTime will set the create time on a file. On Unix, the create 10 | // time is updated as a side effect of setting the modified time, so 11 | // no action is required. 12 | func setCTime(path string, ctime time.Time) error { 13 | return nil 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/errors.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import "errors" 4 | 5 | // ErrNotSupportedPlatform means the platform is not supported. 6 | var ErrNotSupportedPlatform = errors.New("platform and architecture is not supported") 7 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/filesys_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | 3 | package system // import "github.com/docker/docker/pkg/system" 4 | 5 | import "os" 6 | 7 | // MkdirAllWithACL is a wrapper for os.MkdirAll on unix systems. 8 | func MkdirAllWithACL(path string, perm os.FileMode, sddl string) error { 9 | return os.MkdirAll(path, perm) 10 | } 11 | 12 | // MkdirAll creates a directory named path along with any necessary parents, 13 | // with permission specified by attribute perm for all dir created. 14 | func MkdirAll(path string, perm os.FileMode) error { 15 | return os.MkdirAll(path, perm) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/lstat_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | 3 | package system // import "github.com/docker/docker/pkg/system" 4 | 5 | import ( 6 | "os" 7 | "syscall" 8 | ) 9 | 10 | // Lstat takes a path to a file and returns 11 | // a system.StatT type pertaining to that file. 12 | // 13 | // Throws an error if the file does not exist 14 | func Lstat(path string) (*StatT, error) { 15 | s := &syscall.Stat_t{} 16 | if err := syscall.Lstat(path, s); err != nil { 17 | return nil, &os.PathError{Op: "Lstat", Path: path, Err: err} 18 | } 19 | return fromStatT(s) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/lstat_windows.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import "os" 4 | 5 | // Lstat calls os.Lstat to get a fileinfo interface back. 6 | // This is then copied into our own locally defined structure. 7 | func Lstat(path string) (*StatT, error) { 8 | fi, err := os.Lstat(path) 9 | if err != nil { 10 | return nil, err 11 | } 12 | 13 | return fromStatT(&fi) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/mknod_freebsd.go: -------------------------------------------------------------------------------- 1 | //go:build freebsd 2 | 3 | package system // import "github.com/docker/docker/pkg/system" 4 | 5 | import ( 6 | "golang.org/x/sys/unix" 7 | ) 8 | 9 | // Mknod creates a filesystem node (file, device special file or named pipe) named path 10 | // with attributes specified by mode and dev. 11 | func Mknod(path string, mode uint32, dev int) error { 12 | return unix.Mknod(path, mode, uint64(dev)) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/mknod_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !freebsd && !windows 2 | 3 | package system // import "github.com/docker/docker/pkg/system" 4 | 5 | import ( 6 | "golang.org/x/sys/unix" 7 | ) 8 | 9 | // Mknod creates a filesystem node (file, device special file or named pipe) named path 10 | // with attributes specified by mode and dev. 11 | func Mknod(path string, mode uint32, dev int) error { 12 | return unix.Mknod(path, mode, dev) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/stat_bsd.go: -------------------------------------------------------------------------------- 1 | //go:build freebsd || netbsd 2 | 3 | package system // import "github.com/docker/docker/pkg/system" 4 | 5 | import "syscall" 6 | 7 | // fromStatT converts a syscall.Stat_t type to a system.Stat_t type 8 | func fromStatT(s *syscall.Stat_t) (*StatT, error) { 9 | return &StatT{ 10 | size: s.Size, 11 | mode: uint32(s.Mode), 12 | uid: s.Uid, 13 | gid: s.Gid, 14 | rdev: uint64(s.Rdev), 15 | mtim: s.Mtimespec, 16 | }, nil 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/stat_darwin.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import "syscall" 4 | 5 | // fromStatT converts a syscall.Stat_t type to a system.Stat_t type 6 | func fromStatT(s *syscall.Stat_t) (*StatT, error) { 7 | return &StatT{ 8 | size: s.Size, 9 | mode: uint32(s.Mode), 10 | uid: s.Uid, 11 | gid: s.Gid, 12 | rdev: uint64(s.Rdev), 13 | mtim: s.Mtimespec, 14 | }, nil 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/stat_illumos.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import "syscall" 4 | 5 | // fromStatT converts a syscall.Stat_t type to a system.Stat_t type 6 | func fromStatT(s *syscall.Stat_t) (*StatT, error) { 7 | return &StatT{ 8 | size: s.Size, 9 | mode: uint32(s.Mode), 10 | uid: s.Uid, 11 | gid: s.Gid, 12 | rdev: uint64(s.Rdev), 13 | mtim: s.Mtim, 14 | }, nil 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/stat_openbsd.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import "syscall" 4 | 5 | // fromStatT converts a syscall.Stat_t type to a system.Stat_t type 6 | func fromStatT(s *syscall.Stat_t) (*StatT, error) { 7 | return &StatT{ 8 | size: s.Size, 9 | mode: uint32(s.Mode), 10 | uid: s.Uid, 11 | gid: s.Gid, 12 | rdev: uint64(s.Rdev), 13 | mtim: s.Mtim, 14 | }, nil 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/utimes_unsupported.go: -------------------------------------------------------------------------------- 1 | //go:build !linux && !freebsd 2 | 3 | package system // import "github.com/docker/docker/pkg/system" 4 | 5 | import "syscall" 6 | 7 | // LUtimesNano is only supported on linux and freebsd. 8 | func LUtimesNano(path string, ts []syscall.Timespec) error { 9 | return ErrNotSupportedPlatform 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/xattrs.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | type XattrError struct { 4 | Op string 5 | Attr string 6 | Path string 7 | Err error 8 | } 9 | 10 | func (e *XattrError) Error() string { return e.Op + " " + e.Attr + " " + e.Path + ": " + e.Err.Error() } 11 | 12 | func (e *XattrError) Unwrap() error { return e.Err } 13 | 14 | // Timeout reports whether this error represents a timeout. 15 | func (e *XattrError) Timeout() bool { 16 | t, ok := e.Err.(interface{ Timeout() bool }) 17 | return ok && t.Timeout() 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/xattrs_unsupported.go: -------------------------------------------------------------------------------- 1 | //go:build !linux 2 | 3 | package system // import "github.com/docker/docker/pkg/system" 4 | 5 | // Lgetxattr is not supported on platforms other than linux. 6 | func Lgetxattr(path string, attr string) ([]byte, error) { 7 | return nil, ErrNotSupportedPlatform 8 | } 9 | 10 | // Lsetxattr is not supported on platforms other than linux. 11 | func Lsetxattr(path string, attr string, data []byte, flags int) error { 12 | return ErrNotSupportedPlatform 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/sockets/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/gh-ost/5c88f54b3026af4ffa0a7e9767d47b838706bd49/vendor/github.com/docker/go-connections/sockets/README.md -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/tlsconfig/certpool.go: -------------------------------------------------------------------------------- 1 | package tlsconfig 2 | 3 | import ( 4 | "crypto/x509" 5 | "runtime" 6 | ) 7 | 8 | // SystemCertPool returns a copy of the system cert pool, 9 | // returns an error if failed to load or empty pool on windows. 10 | func SystemCertPool() (*x509.CertPool, error) { 11 | certpool, err := x509.SystemCertPool() 12 | if err != nil && runtime.GOOS == "windows" { 13 | return x509.NewCertPool(), nil 14 | } 15 | return certpool, err 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/tlsconfig/config_client_ciphers.go: -------------------------------------------------------------------------------- 1 | // Package tlsconfig provides primitives to retrieve secure-enough TLS configurations for both clients and servers. 2 | package tlsconfig 3 | 4 | import ( 5 | "crypto/tls" 6 | ) 7 | 8 | // Client TLS cipher suites (dropping CBC ciphers for client preferred suite set) 9 | var clientCipherSuites = []uint16{ 10 | tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, 11 | tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, 12 | tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, 13 | tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-units/README.md: -------------------------------------------------------------------------------- 1 | [![GoDoc](https://godoc.org/github.com/docker/go-units?status.svg)](https://godoc.org/github.com/docker/go-units) 2 | 3 | # Introduction 4 | 5 | go-units is a library to transform human friendly measurements into machine friendly values. 6 | 7 | ## Usage 8 | 9 | See the [docs in godoc](https://godoc.org/github.com/docker/go-units) for examples and documentation. 10 | 11 | ## Copyright and license 12 | 13 | Copyright © 2015 Docker, Inc. 14 | 15 | go-units is licensed under the Apache License, Version 2.0. 16 | See [LICENSE](LICENSE) for the full text of the license. 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-units/circle.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | post: 3 | # install golint 4 | - go get golang.org/x/lint/golint 5 | 6 | test: 7 | pre: 8 | # run analysis before tests 9 | - go vet ./... 10 | - test -z "$(golint ./... | tee /dev/stderr)" 11 | - test -z "$(gofmt -s -l . | tee /dev/stderr)" 12 | -------------------------------------------------------------------------------- /vendor/github.com/felixge/httpsnoop/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/gh-ost/5c88f54b3026af4ffa0a7e9767d47b838706bd49/vendor/github.com/felixge/httpsnoop/.gitignore -------------------------------------------------------------------------------- /vendor/github.com/felixge/httpsnoop/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: ci generate clean 2 | 3 | ci: clean generate 4 | go test -race -v ./... 5 | 6 | generate: 7 | go generate . 8 | 9 | clean: 10 | rm -rf *_generated*.go 11 | -------------------------------------------------------------------------------- /vendor/github.com/felixge/httpsnoop/docs.go: -------------------------------------------------------------------------------- 1 | // Package httpsnoop provides an easy way to capture http related metrics (i.e. 2 | // response time, bytes written, and http status code) from your application's 3 | // http.Handlers. 4 | // 5 | // Doing this requires non-trivial wrapping of the http.ResponseWriter 6 | // interface, which is also exposed for users interested in a more low-level 7 | // API. 8 | package httpsnoop 9 | 10 | //go:generate go run codegen/main.go 11 | -------------------------------------------------------------------------------- /vendor/github.com/go-ini/ini/.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | charset = utf-8 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*_test.go] 12 | trim_trailing_whitespace = false 13 | -------------------------------------------------------------------------------- /vendor/github.com/go-ini/ini/.gitignore: -------------------------------------------------------------------------------- 1 | testdata/conf_out.ini 2 | ini.sublime-project 3 | ini.sublime-workspace 4 | testdata/conf_reflect.ini 5 | .idea 6 | /.vscode 7 | .DS_Store 8 | -------------------------------------------------------------------------------- /vendor/github.com/go-ini/ini/.golangci.yml: -------------------------------------------------------------------------------- 1 | linters-settings: 2 | staticcheck: 3 | checks: [ 4 | "all", 5 | "-SA1019" # There are valid use cases of strings.Title 6 | ] 7 | nakedret: 8 | max-func-lines: 0 # Disallow any unnamed return statement 9 | 10 | linters: 11 | enable: 12 | - deadcode 13 | - errcheck 14 | - gosimple 15 | - govet 16 | - ineffassign 17 | - staticcheck 18 | - structcheck 19 | - typecheck 20 | - unused 21 | - varcheck 22 | - nakedret 23 | - gofmt 24 | - rowserrcheck 25 | - unconvert 26 | - goimports 27 | - unparam 28 | -------------------------------------------------------------------------------- /vendor/github.com/go-ini/ini/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: build test bench vet coverage 2 | 3 | build: vet bench 4 | 5 | test: 6 | go test -v -cover -race 7 | 8 | bench: 9 | go test -v -cover -test.bench=. -test.benchmem 10 | 11 | vet: 12 | go vet 13 | 14 | coverage: 15 | go test -coverprofile=c.out && go tool cover -html=c.out && rm c.out 16 | -------------------------------------------------------------------------------- /vendor/github.com/go-ini/ini/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "60...95" 3 | status: 4 | project: 5 | default: 6 | threshold: 1% 7 | informational: true 8 | patch: 9 | defualt: 10 | only_pulls: true 11 | informational: true 12 | 13 | comment: 14 | layout: 'diff' 15 | 16 | github_checks: false 17 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/logr/.golangci.yaml: -------------------------------------------------------------------------------- 1 | run: 2 | timeout: 1m 3 | tests: true 4 | 5 | linters: 6 | disable-all: true 7 | enable: 8 | - asciicheck 9 | - errcheck 10 | - forcetypeassert 11 | - gocritic 12 | - gofmt 13 | - goimports 14 | - gosimple 15 | - govet 16 | - ineffassign 17 | - misspell 18 | - revive 19 | - staticcheck 20 | - typecheck 21 | - unused 22 | 23 | issues: 24 | exclude-use-default: false 25 | max-issues-per-linter: 0 26 | max-same-issues: 10 27 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/logr/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # CHANGELOG 2 | 3 | ## v1.0.0-rc1 4 | 5 | This is the first logged release. Major changes (including breaking changes) 6 | have occurred since earlier tags. 7 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/stdr/README.md: -------------------------------------------------------------------------------- 1 | # Minimal Go logging using logr and Go's standard library 2 | 3 | [![Go Reference](https://pkg.go.dev/badge/github.com/go-logr/stdr.svg)](https://pkg.go.dev/github.com/go-logr/stdr) 4 | 5 | This package implements the [logr interface](https://github.com/go-logr/logr) 6 | in terms of Go's standard log package(https://pkg.go.dev/log). 7 | -------------------------------------------------------------------------------- /vendor/github.com/go-mysql-org/go-mysql/mysql/validate.go: -------------------------------------------------------------------------------- 1 | package mysql 2 | 3 | import ( 4 | "fmt" 5 | "strings" 6 | ) 7 | 8 | func ValidateFlavor(flavor string) error { 9 | switch strings.ToLower(flavor) { 10 | case MySQLFlavor: 11 | return nil 12 | case MariaDBFlavor: 13 | return nil 14 | default: 15 | return fmt.Errorf("%s is not a valid flavor", flavor) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/go-mysql-org/go-mysql/replication/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Replication package is to handle MySQL replication protocol. 3 | 4 | Todo: 5 | 6 | + Get table information when handing rows event. 7 | */ 8 | package replication 9 | -------------------------------------------------------------------------------- /vendor/github.com/go-mysql-org/go-mysql/utils/now.go: -------------------------------------------------------------------------------- 1 | //go:build !unix 2 | 3 | package utils 4 | 5 | import "time" 6 | 7 | var Now = time.Now 8 | -------------------------------------------------------------------------------- /vendor/github.com/go-mysql-org/go-mysql/utils/now_unix.go: -------------------------------------------------------------------------------- 1 | //go:build unix 2 | 3 | package utils 4 | 5 | import ( 6 | "syscall" 7 | "time" 8 | ) 9 | 10 | // Now is a faster method to get current time 11 | func Now() time.Time { 12 | var tv syscall.Timeval 13 | if err := syscall.Gettimeofday(&tv); err != nil { 14 | // If it failed at syscall, use time package instead 15 | return time.Now() 16 | } 17 | 18 | return time.Unix(0, syscall.TimevalToNsec(tv)) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | 4 | go: 5 | - 1.9.x 6 | - 1.10.x 7 | - 1.11.x 8 | - tip 9 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/error_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | // errstr converts error code to string. 6 | func errstr(errno int) string { 7 | return "" 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iconnectionpoint.go: -------------------------------------------------------------------------------- 1 | package ole 2 | 3 | import "unsafe" 4 | 5 | type IConnectionPoint struct { 6 | IUnknown 7 | } 8 | 9 | type IConnectionPointVtbl struct { 10 | IUnknownVtbl 11 | GetConnectionInterface uintptr 12 | GetConnectionPointContainer uintptr 13 | Advise uintptr 14 | Unadvise uintptr 15 | EnumConnections uintptr 16 | } 17 | 18 | func (v *IConnectionPoint) VTable() *IConnectionPointVtbl { 19 | return (*IConnectionPointVtbl)(unsafe.Pointer(v.RawVTable)) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iconnectionpoint_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | import "unsafe" 6 | 7 | func (v *IConnectionPoint) GetConnectionInterface(piid **GUID) int32 { 8 | return int32(0) 9 | } 10 | 11 | func (v *IConnectionPoint) Advise(unknown *IUnknown) (uint32, error) { 12 | return uint32(0), NewError(E_NOTIMPL) 13 | } 14 | 15 | func (v *IConnectionPoint) Unadvise(cookie uint32) error { 16 | return NewError(E_NOTIMPL) 17 | } 18 | 19 | func (v *IConnectionPoint) EnumConnections(p *unsafe.Pointer) (err error) { 20 | return NewError(E_NOTIMPL) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iconnectionpointcontainer.go: -------------------------------------------------------------------------------- 1 | package ole 2 | 3 | import "unsafe" 4 | 5 | type IConnectionPointContainer struct { 6 | IUnknown 7 | } 8 | 9 | type IConnectionPointContainerVtbl struct { 10 | IUnknownVtbl 11 | EnumConnectionPoints uintptr 12 | FindConnectionPoint uintptr 13 | } 14 | 15 | func (v *IConnectionPointContainer) VTable() *IConnectionPointContainerVtbl { 16 | return (*IConnectionPointContainerVtbl)(unsafe.Pointer(v.RawVTable)) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iconnectionpointcontainer_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func (v *IConnectionPointContainer) EnumConnectionPoints(points interface{}) error { 6 | return NewError(E_NOTIMPL) 7 | } 8 | 9 | func (v *IConnectionPointContainer) FindConnectionPoint(iid *GUID, point **IConnectionPoint) error { 10 | return NewError(E_NOTIMPL) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/idispatch_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func getIDsOfName(disp *IDispatch, names []string) ([]int32, error) { 6 | return []int32{}, NewError(E_NOTIMPL) 7 | } 8 | 9 | func getTypeInfoCount(disp *IDispatch) (uint32, error) { 10 | return uint32(0), NewError(E_NOTIMPL) 11 | } 12 | 13 | func getTypeInfo(disp *IDispatch) (*ITypeInfo, error) { 14 | return nil, NewError(E_NOTIMPL) 15 | } 16 | 17 | func invoke(disp *IDispatch, dispid int32, dispatch int16, params ...interface{}) (*VARIANT, error) { 18 | return nil, NewError(E_NOTIMPL) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/ienumvariant.go: -------------------------------------------------------------------------------- 1 | package ole 2 | 3 | import "unsafe" 4 | 5 | type IEnumVARIANT struct { 6 | IUnknown 7 | } 8 | 9 | type IEnumVARIANTVtbl struct { 10 | IUnknownVtbl 11 | Next uintptr 12 | Skip uintptr 13 | Reset uintptr 14 | Clone uintptr 15 | } 16 | 17 | func (v *IEnumVARIANT) VTable() *IEnumVARIANTVtbl { 18 | return (*IEnumVARIANTVtbl)(unsafe.Pointer(v.RawVTable)) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/ienumvariant_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func (enum *IEnumVARIANT) Clone() (*IEnumVARIANT, error) { 6 | return nil, NewError(E_NOTIMPL) 7 | } 8 | 9 | func (enum *IEnumVARIANT) Reset() error { 10 | return NewError(E_NOTIMPL) 11 | } 12 | 13 | func (enum *IEnumVARIANT) Skip(celt uint) error { 14 | return NewError(E_NOTIMPL) 15 | } 16 | 17 | func (enum *IEnumVARIANT) Next(celt uint) (VARIANT, uint, error) { 18 | return NewVariant(VT_NULL, int64(0)), 0, NewError(E_NOTIMPL) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iinspectable.go: -------------------------------------------------------------------------------- 1 | package ole 2 | 3 | import "unsafe" 4 | 5 | type IInspectable struct { 6 | IUnknown 7 | } 8 | 9 | type IInspectableVtbl struct { 10 | IUnknownVtbl 11 | GetIIds uintptr 12 | GetRuntimeClassName uintptr 13 | GetTrustLevel uintptr 14 | } 15 | 16 | func (v *IInspectable) VTable() *IInspectableVtbl { 17 | return (*IInspectableVtbl)(unsafe.Pointer(v.RawVTable)) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iinspectable_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func (v *IInspectable) GetIids() ([]*GUID, error) { 6 | return []*GUID{}, NewError(E_NOTIMPL) 7 | } 8 | 9 | func (v *IInspectable) GetRuntimeClassName() (string, error) { 10 | return "", NewError(E_NOTIMPL) 11 | } 12 | 13 | func (v *IInspectable) GetTrustLevel() (uint32, error) { 14 | return uint32(0), NewError(E_NOTIMPL) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iprovideclassinfo.go: -------------------------------------------------------------------------------- 1 | package ole 2 | 3 | import "unsafe" 4 | 5 | type IProvideClassInfo struct { 6 | IUnknown 7 | } 8 | 9 | type IProvideClassInfoVtbl struct { 10 | IUnknownVtbl 11 | GetClassInfo uintptr 12 | } 13 | 14 | func (v *IProvideClassInfo) VTable() *IProvideClassInfoVtbl { 15 | return (*IProvideClassInfoVtbl)(unsafe.Pointer(v.RawVTable)) 16 | } 17 | 18 | func (v *IProvideClassInfo) GetClassInfo() (cinfo *ITypeInfo, err error) { 19 | cinfo, err = getClassInfo(v) 20 | return 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iprovideclassinfo_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func getClassInfo(disp *IProvideClassInfo) (tinfo *ITypeInfo, err error) { 6 | return nil, NewError(E_NOTIMPL) 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iprovideclassinfo_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package ole 4 | 5 | import ( 6 | "syscall" 7 | "unsafe" 8 | ) 9 | 10 | func getClassInfo(disp *IProvideClassInfo) (tinfo *ITypeInfo, err error) { 11 | hr, _, _ := syscall.Syscall( 12 | disp.VTable().GetClassInfo, 13 | 2, 14 | uintptr(unsafe.Pointer(disp)), 15 | uintptr(unsafe.Pointer(&tinfo)), 16 | 0) 17 | if hr != 0 { 18 | err = NewError(hr) 19 | } 20 | return 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/itypeinfo_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func (v *ITypeInfo) GetTypeAttr() (*TYPEATTR, error) { 6 | return nil, NewError(E_NOTIMPL) 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/itypeinfo_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package ole 4 | 5 | import ( 6 | "syscall" 7 | "unsafe" 8 | ) 9 | 10 | func (v *ITypeInfo) GetTypeAttr() (tattr *TYPEATTR, err error) { 11 | hr, _, _ := syscall.Syscall( 12 | uintptr(v.VTable().GetTypeAttr), 13 | 2, 14 | uintptr(unsafe.Pointer(v)), 15 | uintptr(unsafe.Pointer(&tattr)), 16 | 0) 17 | if hr != 0 { 18 | err = NewError(hr) 19 | } 20 | return 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iunknown_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func reflectQueryInterface(self interface{}, method uintptr, interfaceID *GUID, obj interface{}) (err error) { 6 | return NewError(E_NOTIMPL) 7 | } 8 | 9 | func queryInterface(unk *IUnknown, iid *GUID) (disp *IDispatch, err error) { 10 | return nil, NewError(E_NOTIMPL) 11 | } 12 | 13 | func addRef(unk *IUnknown) int32 { 14 | return 0 15 | } 16 | 17 | func release(unk *IUnknown) int32 { 18 | return 0 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/oleutil/connection_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package oleutil 4 | 5 | import ole "github.com/go-ole/go-ole" 6 | 7 | // ConnectObject creates a connection point between two services for communication. 8 | func ConnectObject(disp *ole.IDispatch, iid *ole.GUID, idisp interface{}) (uint32, error) { 9 | return 0, ole.NewError(ole.E_NOTIMPL) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/oleutil/go-get.go: -------------------------------------------------------------------------------- 1 | // This file is here so go get succeeds as without it errors with: 2 | // no buildable Go source files in ... 3 | // 4 | // +build !windows 5 | 6 | package oleutil 7 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variables.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package ole 4 | 5 | import ( 6 | "golang.org/x/sys/windows" 7 | ) 8 | 9 | var ( 10 | modcombase = windows.NewLazySystemDLL("combase.dll") 11 | modkernel32 = windows.NewLazySystemDLL("kernel32.dll") 12 | modole32 = windows.NewLazySystemDLL("ole32.dll") 13 | modoleaut32 = windows.NewLazySystemDLL("oleaut32.dll") 14 | moduser32 = windows.NewLazySystemDLL("user32.dll") 15 | ) 16 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_386.go: -------------------------------------------------------------------------------- 1 | // +build 386 2 | 3 | package ole 4 | 5 | type VARIANT struct { 6 | VT VT // 2 7 | wReserved1 uint16 // 4 8 | wReserved2 uint16 // 6 9 | wReserved3 uint16 // 8 10 | Val int64 // 16 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_amd64.go: -------------------------------------------------------------------------------- 1 | // +build amd64 2 | 3 | package ole 4 | 5 | type VARIANT struct { 6 | VT VT // 2 7 | wReserved1 uint16 // 4 8 | wReserved2 uint16 // 6 9 | wReserved3 uint16 // 8 10 | Val int64 // 16 11 | _ [8]byte // 24 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_arm.go: -------------------------------------------------------------------------------- 1 | // +build arm 2 | 3 | package ole 4 | 5 | type VARIANT struct { 6 | VT VT // 2 7 | wReserved1 uint16 // 4 8 | wReserved2 uint16 // 6 9 | wReserved3 uint16 // 8 10 | Val int64 // 16 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_arm64.go: -------------------------------------------------------------------------------- 1 | //go:build arm64 2 | // +build arm64 3 | 4 | package ole 5 | 6 | type VARIANT struct { 7 | VT VT // 2 8 | wReserved1 uint16 // 4 9 | wReserved2 uint16 // 6 10 | wReserved3 uint16 // 8 11 | Val int64 // 16 12 | _ [8]byte // 24 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_ppc64le.go: -------------------------------------------------------------------------------- 1 | // +build ppc64le 2 | 3 | package ole 4 | 5 | type VARIANT struct { 6 | VT VT // 2 7 | wReserved1 uint16 // 4 8 | wReserved2 uint16 // 6 9 | wReserved3 uint16 // 8 10 | Val int64 // 16 11 | _ [8]byte // 24 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_s390x.go: -------------------------------------------------------------------------------- 1 | // +build s390x 2 | 3 | package ole 4 | 5 | type VARIANT struct { 6 | VT VT // 2 7 | wReserved1 uint16 // 4 8 | wReserved2 uint16 // 6 9 | wReserved3 uint16 // 8 10 | Val int64 // 16 11 | _ [8]byte // 24 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/go-sql-driver/mysql/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .DS_Store? 3 | ._* 4 | .Spotlight-V100 5 | .Trashes 6 | Icon? 7 | ehthumbs.db 8 | Thumbs.db 9 | .idea 10 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/.gitignore: -------------------------------------------------------------------------------- 1 | cover.html 2 | cover.out 3 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '2' 2 | services: 3 | go-json: 4 | image: golang:1.18 5 | volumes: 6 | - '.:/go/src/go-json' 7 | deploy: 8 | resources: 9 | limits: 10 | memory: 620M 11 | working_dir: /go/src/go-json 12 | command: | 13 | sh -c "go test -c . && ls go-json.test" 14 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/decoder/option.go: -------------------------------------------------------------------------------- 1 | package decoder 2 | 3 | import "context" 4 | 5 | type OptionFlags uint8 6 | 7 | const ( 8 | FirstWinOption OptionFlags = 1 << iota 9 | ContextOption 10 | PathOption 11 | ) 12 | 13 | type Option struct { 14 | Flags OptionFlags 15 | Context context.Context 16 | Path *Path 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/encoder/map112.go: -------------------------------------------------------------------------------- 1 | //go:build !go1.13 2 | // +build !go1.13 3 | 4 | package encoder 5 | 6 | import "unsafe" 7 | 8 | //go:linkname MapIterValue reflect.mapitervalue 9 | func MapIterValue(it *mapIter) unsafe.Pointer 10 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/encoder/map113.go: -------------------------------------------------------------------------------- 1 | //go:build go1.13 2 | // +build go1.13 3 | 4 | package encoder 5 | 6 | import "unsafe" 7 | 8 | //go:linkname MapIterValue reflect.mapiterelem 9 | func MapIterValue(it *mapIter) unsafe.Pointer 10 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/encoder/vm/hack.go: -------------------------------------------------------------------------------- 1 | package vm 2 | 3 | import ( 4 | // HACK: compile order 5 | // `vm`, `vm_indent`, `vm_color`, `vm_color_indent` packages uses a lot of memory to compile, 6 | // so forcibly make dependencies and avoid compiling in concurrent. 7 | // dependency order: vm => vm_indent => vm_color => vm_color_indent 8 | _ "github.com/goccy/go-json/internal/encoder/vm_indent" 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/encoder/vm_color/hack.go: -------------------------------------------------------------------------------- 1 | package vm_color 2 | 3 | import ( 4 | // HACK: compile order 5 | // `vm`, `vm_indent`, `vm_color`, `vm_color_indent` packages uses a lot of memory to compile, 6 | // so forcibly make dependencies and avoid compiling in concurrent. 7 | // dependency order: vm => vm_indent => vm_color => vm_color_indent 8 | _ "github.com/goccy/go-json/internal/encoder/vm_color_indent" 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/encoder/vm_indent/hack.go: -------------------------------------------------------------------------------- 1 | package vm_indent 2 | 3 | import ( 4 | // HACK: compile order 5 | // `vm`, `vm_indent`, `vm_color`, `vm_color_indent` packages uses a lot of memory to compile, 6 | // so forcibly make dependencies and avoid compiling in concurrent. 7 | // dependency order: vm => vm_indent => vm_color => vm_color_indent 8 | _ "github.com/goccy/go-json/internal/encoder/vm_color" 9 | ) 10 | -------------------------------------------------------------------------------- /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/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 removes 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/hashicorp/go-version/version_collection.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) HashiCorp, Inc. 2 | // SPDX-License-Identifier: MPL-2.0 3 | 4 | package version 5 | 6 | // Collection is a type that implements the sort.Interface interface 7 | // so that versions can be sorted. 8 | type Collection []*Version 9 | 10 | func (v Collection) Len() int { 11 | return len(v) 12 | } 13 | 14 | func (v Collection) Less(i, j int) bool { 15 | return v[i].LessThan(v[j]) 16 | } 17 | 18 | func (v Collection) Swap(i, j int) { 19 | v[i], v[j] = v[j], v[i] 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/.gitattributes: -------------------------------------------------------------------------------- 1 | * -text 2 | *.bin -text -diff 3 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/.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 | /s2/cmd/_s2sx/sfx-exe 26 | 27 | # Linux perf files 28 | perf.data 29 | perf.data.old 30 | 31 | # gdb history 32 | .gdb_history 33 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/matchlen_amd64.go: -------------------------------------------------------------------------------- 1 | //go:build amd64 && !appengine && !noasm && gc 2 | // +build amd64,!appengine,!noasm,gc 3 | 4 | // Copyright 2019+ Klaus Post. All rights reserved. 5 | // License information can be found in the LICENSE file. 6 | 7 | package flate 8 | 9 | // matchLen returns how many bytes match in a and b 10 | // 11 | // It assumes that: 12 | // 13 | // len(a) <= len(b) and len(a) > 0 14 | // 15 | //go:noescape 16 | func matchLen(a []byte, b []byte) int 17 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/gen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cd s2/cmd/_s2sx/ || exit 1 4 | go generate . 5 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/huff0/.gitignore: -------------------------------------------------------------------------------- 1 | /huff0-fuzz.zip 2 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/internal/cpuinfo/cpuinfo_amd64.go: -------------------------------------------------------------------------------- 1 | //go:build amd64 && !appengine && !noasm && gc 2 | // +build amd64,!appengine,!noasm,gc 3 | 4 | package cpuinfo 5 | 6 | // go:noescape 7 | func x86extensions() (bmi1, bmi2 bool) 8 | 9 | func init() { 10 | hasBMI1, hasBMI2 = x86extensions() 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/s2sx.mod: -------------------------------------------------------------------------------- 1 | module github.com/klauspost/compress 2 | 3 | go 1.19 4 | 5 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/s2sx.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/gh-ost/5c88f54b3026af4ffa0a7e9767d47b838706bd49/vendor/github.com/klauspost/compress/s2sx.sum -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_asm.go: -------------------------------------------------------------------------------- 1 | //go:build (amd64 || arm64) && !appengine && gc && !purego && !noasm 2 | // +build amd64 arm64 3 | // +build !appengine 4 | // +build gc 5 | // +build !purego 6 | // +build !noasm 7 | 8 | package xxhash 9 | 10 | // Sum64 computes the 64-bit xxHash digest of b. 11 | // 12 | //go:noescape 13 | func Sum64(b []byte) uint64 14 | 15 | //go:noescape 16 | func writeBlocks(s *Digest, b []byte) int 17 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_safe.go: -------------------------------------------------------------------------------- 1 | package xxhash 2 | 3 | // Sum64String computes the 64-bit xxHash digest of s. 4 | func Sum64String(s string) uint64 { 5 | return Sum64([]byte(s)) 6 | } 7 | 8 | // WriteString adds more data to d. It always returns len(s), nil. 9 | func (d *Digest) WriteString(s string) (n int, err error) { 10 | return d.Write([]byte(s)) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/zstd/matchlen_amd64.go: -------------------------------------------------------------------------------- 1 | //go:build amd64 && !appengine && !noasm && gc 2 | // +build amd64,!appengine,!noasm,gc 3 | 4 | // Copyright 2019+ Klaus Post. All rights reserved. 5 | // License information can be found in the LICENSE file. 6 | 7 | package zstd 8 | 9 | // matchLen returns how many bytes match in a and b 10 | // 11 | // It assumes that: 12 | // 13 | // len(a) <= len(b) and len(a) > 0 14 | // 15 | //go:noescape 16 | func matchLen(a []byte, b []byte) int 17 | -------------------------------------------------------------------------------- /vendor/github.com/lufia/plan9stats/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, build with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | -------------------------------------------------------------------------------- /vendor/github.com/lufia/plan9stats/README.md: -------------------------------------------------------------------------------- 1 | # plan9stats 2 | A module for retrieving statistics of Plan 9 3 | -------------------------------------------------------------------------------- /vendor/github.com/lufia/plan9stats/doc.go: -------------------------------------------------------------------------------- 1 | // Package stats provides statistic utilities for Plan 9. 2 | package stats 3 | -------------------------------------------------------------------------------- /vendor/github.com/lufia/plan9stats/int.go: -------------------------------------------------------------------------------- 1 | package stats 2 | 3 | import ( 4 | "strconv" 5 | ) 6 | 7 | type intParser struct { 8 | err error 9 | } 10 | 11 | func (p *intParser) ParseInt(s string, base int) int { 12 | if p.err != nil { 13 | return 0 14 | } 15 | var n int64 16 | n, p.err = strconv.ParseInt(s, base, 0) 17 | return int(n) 18 | } 19 | 20 | func (p *intParser) ParseInt64(s string, base int) int64 { 21 | if p.err != nil { 22 | return 0 23 | } 24 | var n int64 25 | n, p.err = strconv.ParseInt(s, base, 64) 26 | return n 27 | } 28 | 29 | func (p *intParser) Err() error { 30 | return p.err 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/lufia/plan9stats/opts.go: -------------------------------------------------------------------------------- 1 | package stats 2 | 3 | type Config struct { 4 | rootdir string 5 | } 6 | 7 | type Option func(*Config) 8 | 9 | func newConfig(opts ...Option) *Config { 10 | var cfg Config 11 | for _, opt := range opts { 12 | opt(&cfg) 13 | } 14 | return &cfg 15 | } 16 | 17 | func WithRootDir(dir string) Option { 18 | return func(cfg *Config) { 19 | cfg.rootdir = dir 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/magiconair/properties/.gitignore: -------------------------------------------------------------------------------- 1 | *.sublime-project 2 | *.sublime-workspace 3 | *.un~ 4 | *.swp 5 | .idea/ 6 | *.iml 7 | -------------------------------------------------------------------------------- /vendor/github.com/moby/patternmatcher/NOTICE: -------------------------------------------------------------------------------- 1 | Docker 2 | Copyright 2012-2017 Docker, Inc. 3 | 4 | This product includes software developed at Docker, Inc. (https://www.docker.com). 5 | 6 | The following is courtesy of our legal counsel: 7 | 8 | 9 | Use and transfer of Docker may be subject to certain restrictions by the 10 | United States and other governments. 11 | It is your responsibility to ensure that your use and/or transfer does not 12 | violate applicable laws. 13 | 14 | For more information, please see https://www.bis.doc.gov 15 | 16 | See also https://www.apache.org/dev/crypto.html and/or seek legal counsel. 17 | -------------------------------------------------------------------------------- /vendor/github.com/moby/sys/userns/userns_linux_fuzzer.go: -------------------------------------------------------------------------------- 1 | //go:build linux && gofuzz 2 | 3 | package userns 4 | 5 | func FuzzUIDMap(uidmap []byte) int { 6 | _ = uidMapInUserNS(string(uidmap)) 7 | return 1 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/moby/sys/userns/userns_unsupported.go: -------------------------------------------------------------------------------- 1 | //go:build !linux 2 | 3 | package userns 4 | 5 | // inUserNS is a stub for non-Linux systems. Always returns false. 6 | func inUserNS() bool { return false } 7 | -------------------------------------------------------------------------------- /vendor/github.com/moby/term/.gitignore: -------------------------------------------------------------------------------- 1 | # if you want to ignore files created by your editor/tools, consider using a 2 | # global .gitignore or .git/info/exclude see https://help.github.com/articles/ignoring-files 3 | .* 4 | !.github 5 | !.gitignore 6 | profile.out 7 | # support running go modules in vendor mode for local development 8 | vendor/ 9 | -------------------------------------------------------------------------------- /vendor/github.com/moby/term/doc.go: -------------------------------------------------------------------------------- 1 | // Package term provides structures and helper functions to work with 2 | // terminal (state, sizes). 3 | package term 4 | -------------------------------------------------------------------------------- /vendor/github.com/moby/term/termios_bsd.go: -------------------------------------------------------------------------------- 1 | //go:build darwin || freebsd || openbsd || netbsd 2 | // +build darwin freebsd openbsd netbsd 3 | 4 | package term 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | const ( 11 | getTermios = unix.TIOCGETA 12 | setTermios = unix.TIOCSETA 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/moby/term/termios_nonbsd.go: -------------------------------------------------------------------------------- 1 | //go:build !darwin && !freebsd && !netbsd && !openbsd && !windows 2 | // +build !darwin,!freebsd,!netbsd,!openbsd,!windows 3 | 4 | package term 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | const ( 11 | getTermios = unix.TCGETS 12 | setTermios = unix.TCSETS 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/moby/term/windows/doc.go: -------------------------------------------------------------------------------- 1 | // These files implement ANSI-aware input and output streams for use by the Docker Windows client. 2 | // When asked for the set of standard streams (e.g., stdin, stdout, stderr), the code will create 3 | // and return pseudo-streams that convert ANSI sequences to / from Windows Console API calls. 4 | 5 | package windowsconsole 6 | -------------------------------------------------------------------------------- /vendor/github.com/morikuni/aec/sample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/github/gh-ost/5c88f54b3026af4ffa0a7e9767d47b838706bd49/vendor/github.com/morikuni/aec/sample.gif -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/.mailmap: -------------------------------------------------------------------------------- 1 | Aaron Lehmann 2 | Derek McGowan 3 | Stephen J Day 4 | Haibing Zhou 5 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/.pullapprove.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | 3 | requirements: 4 | signed_off_by: 5 | required: true 6 | 7 | always_pending: 8 | title_regex: '^WIP' 9 | explanation: 'Work in progress...' 10 | 11 | group_defaults: 12 | required: 2 13 | approve_by_comment: 14 | enabled: true 15 | approve_regex: '^LGTM' 16 | reject_regex: '^Rejected' 17 | reset_on_push: 18 | enabled: true 19 | author_approval: 20 | ignored: true 21 | conditions: 22 | branches: 23 | - master 24 | 25 | groups: 26 | go-digest: 27 | teams: 28 | - go-digest-maintainers 29 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.12.x 4 | - 1.13.x 5 | - master 6 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/MAINTAINERS: -------------------------------------------------------------------------------- 1 | Derek McGowan (@dmcgowan) 2 | Stephen Day (@stevvooe) 3 | Vincent Batts (@vbatts) 4 | Akihiro Suda (@AkihiroSuda) 5 | Sebastiaan van Stijn (@thaJeztah) 6 | -------------------------------------------------------------------------------- /vendor/github.com/pingcap/errors/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | .idea 10 | 11 | # Architecture specific extensions/prefixes 12 | *.[568vq] 13 | [568vq].out 14 | 15 | *.cgo1.go 16 | *.cgo2.c 17 | _cgo_defun.c 18 | _cgo_gotypes.go 19 | _cgo_export.* 20 | 21 | _testmain.go 22 | 23 | *.exe 24 | *.test 25 | *.prof 26 | -------------------------------------------------------------------------------- /vendor/github.com/pingcap/errors/.travis.yml: -------------------------------------------------------------------------------- 1 | arch: 2 | - amd64 3 | 4 | language: go 5 | go_import_path: github.com/pingcap/errors 6 | go: 7 | - 1.13.x 8 | - stable 9 | 10 | script: 11 | - go test -v ./... 12 | -------------------------------------------------------------------------------- /vendor/github.com/pingcap/log/.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | .idea/ -------------------------------------------------------------------------------- /vendor/github.com/pingcap/log/README.md: -------------------------------------------------------------------------------- 1 | # pingcap/log 2 | 3 | A wrapper library based on `go.uber.org/zap`. 4 | 5 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/pkg/errors 3 | go: 4 | - 1.11.x 5 | - 1.12.x 6 | - 1.13.x 7 | - tip 8 | 9 | script: 10 | - make check 11 | -------------------------------------------------------------------------------- /vendor/github.com/power-devops/perfstat/config.go: -------------------------------------------------------------------------------- 1 | // +build aix 2 | 3 | package perfstat 4 | 5 | /* 6 | #cgo LDFLAGS: -lperfstat 7 | 8 | #include 9 | */ 10 | import "C" 11 | 12 | func EnableLVMStat() { 13 | C.perfstat_config(C.PERFSTAT_ENABLE|C.PERFSTAT_LV|C.PERFSTAT_VG, nil) 14 | } 15 | 16 | func DisableLVMStat() { 17 | C.perfstat_config(C.PERFSTAT_DISABLE|C.PERFSTAT_LV|C.PERFSTAT_VG, nil) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/power-devops/perfstat/lparstat.go: -------------------------------------------------------------------------------- 1 | // +build aix 2 | 3 | package perfstat 4 | 5 | /* 6 | #cgo LDFLAGS: -lperfstat 7 | 8 | #include 9 | */ 10 | import "C" 11 | 12 | import ( 13 | "fmt" 14 | ) 15 | 16 | func PartitionStat() (*PartitionConfig, error) { 17 | var part C.perfstat_partition_config_t 18 | 19 | rc := C.perfstat_partition_config(nil, &part, C.sizeof_perfstat_partition_config_t, 1) 20 | if rc != 1 { 21 | return nil, fmt.Errorf("perfstat_partition_config() error") 22 | } 23 | p := perfstatpartitionconfig2partitionconfig(part) 24 | return &p, nil 25 | 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_aix.go: -------------------------------------------------------------------------------- 1 | //go:build aix 2 | // +build aix 3 | 4 | package cpu 5 | 6 | import ( 7 | "context" 8 | ) 9 | 10 | func Times(percpu bool) ([]TimesStat, error) { 11 | return TimesWithContext(context.Background(), percpu) 12 | } 13 | 14 | func Info() ([]InfoStat, error) { 15 | return InfoWithContext(context.Background()) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_darwin_nocgo.go: -------------------------------------------------------------------------------- 1 | //go:build darwin && !cgo 2 | // +build darwin,!cgo 3 | 4 | package cpu 5 | 6 | import "github.com/shirou/gopsutil/v3/internal/common" 7 | 8 | func perCPUTimes() ([]TimesStat, error) { 9 | return []TimesStat{}, common.ErrNotImplementedError 10 | } 11 | 12 | func allCPUTimes() ([]TimesStat, error) { 13 | return []TimesStat{}, common.ErrNotImplementedError 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_dragonfly_amd64.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint64 5 | Nice uint64 6 | Sys uint64 7 | Intr uint64 8 | Idle uint64 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_freebsd_386.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint32 5 | Nice uint32 6 | Sys uint32 7 | Intr uint32 8 | Idle uint32 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_freebsd_amd64.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint64 5 | Nice uint64 6 | Sys uint64 7 | Intr uint64 8 | Idle uint64 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_freebsd_arm.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint32 5 | Nice uint32 6 | Sys uint32 7 | Intr uint32 8 | Idle uint32 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_freebsd_arm64.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint64 5 | Nice uint64 6 | Sys uint64 7 | Intr uint64 8 | Idle uint64 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_netbsd_amd64.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint64 5 | Nice uint64 6 | Sys uint64 7 | Intr uint64 8 | Idle uint64 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_netbsd_arm64.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint64 5 | Nice uint64 6 | Sys uint64 7 | Intr uint64 8 | Idle uint64 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_openbsd_386.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint32 5 | Nice uint32 6 | Sys uint32 7 | Spin uint32 8 | Intr uint32 9 | Idle uint32 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_openbsd_amd64.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint64 5 | Nice uint64 6 | Sys uint64 7 | Spin uint64 8 | Intr uint64 9 | Idle uint64 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_openbsd_arm.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint32 5 | Nice uint32 6 | Sys uint32 7 | Spin uint32 8 | Intr uint32 9 | Idle uint32 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_openbsd_arm64.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint64 5 | Nice uint64 6 | Sys uint64 7 | Spin uint64 8 | Intr uint64 9 | Idle uint64 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/internal/common/endian.go: -------------------------------------------------------------------------------- 1 | package common 2 | 3 | import "unsafe" 4 | 5 | // IsLittleEndian checks if the current platform uses little-endian. 6 | // copied from https://github.com/ntrrg/ntgo/blob/v0.8.0/runtime/infrastructure.go#L16 (MIT License) 7 | func IsLittleEndian() bool { 8 | var x int16 = 0x0011 9 | return *(*byte)(unsafe.Pointer(&x)) == 0x11 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/internal/common/sleep.go: -------------------------------------------------------------------------------- 1 | package common 2 | 3 | import ( 4 | "context" 5 | "time" 6 | ) 7 | 8 | // Sleep awaits for provided interval. 9 | // Can be interrupted by context cancelation. 10 | func Sleep(ctx context.Context, interval time.Duration) error { 11 | timer := time.NewTimer(interval) 12 | select { 13 | case <-ctx.Done(): 14 | if !timer.Stop() { 15 | <-timer.C 16 | } 17 | return ctx.Err() 18 | case <-timer.C: 19 | return nil 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/mem/mem_aix.go: -------------------------------------------------------------------------------- 1 | //go:build aix 2 | // +build aix 3 | 4 | package mem 5 | 6 | import ( 7 | "context" 8 | ) 9 | 10 | func VirtualMemory() (*VirtualMemoryStat, error) { 11 | return VirtualMemoryWithContext(context.Background()) 12 | } 13 | 14 | func SwapMemory() (*SwapMemoryStat, error) { 15 | return SwapMemoryWithContext(context.Background()) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/net/net_linux_111.go: -------------------------------------------------------------------------------- 1 | //go:build !go1.16 2 | // +build !go1.16 3 | 4 | package net 5 | 6 | import ( 7 | "os" 8 | ) 9 | 10 | func readDir(f *os.File, max int) ([]os.FileInfo, error) { 11 | return f.Readdir(max) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/net/net_linux_116.go: -------------------------------------------------------------------------------- 1 | //go:build go1.16 2 | // +build go1.16 3 | 4 | package net 5 | 6 | import ( 7 | "os" 8 | ) 9 | 10 | func readDir(f *os.File, max int) ([]os.DirEntry, error) { 11 | return f.ReadDir(max) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/shoenig/go-m1cpu/.golangci.yaml: -------------------------------------------------------------------------------- 1 | run: 2 | timeout: 5m 3 | linters: 4 | enable: 5 | - gofmt 6 | - errcheck 7 | - errname 8 | - errorlint 9 | - bodyclose 10 | - durationcheck 11 | - whitespace 12 | 13 | -------------------------------------------------------------------------------- /vendor/github.com/shoenig/go-m1cpu/Makefile: -------------------------------------------------------------------------------- 1 | SHELL = bash 2 | 3 | default: test 4 | 5 | .PHONY: test 6 | test: 7 | @echo "--> Running Tests ..." 8 | @go test -v -race ./... 9 | 10 | vet: 11 | @echo "--> Vet Go sources ..." 12 | @go vet ./... 13 | -------------------------------------------------------------------------------- /vendor/github.com/shopspring/decimal/.gitignore: -------------------------------------------------------------------------------- 1 | .git 2 | *.swp 3 | 4 | # IntelliJ 5 | .idea/ 6 | *.iml 7 | -------------------------------------------------------------------------------- /vendor/github.com/shopspring/decimal/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.7.x 5 | - 1.12.x 6 | - 1.13.x 7 | - tip 8 | 9 | install: 10 | - go build . 11 | 12 | script: 13 | - go test -v 14 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.gitignore: -------------------------------------------------------------------------------- 1 | logrus 2 | vendor 3 | 4 | .idea/ 5 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/sirupsen/logrus 3 | git: 4 | depth: 1 5 | env: 6 | - GO111MODULE=on 7 | go: 1.15.x 8 | os: linux 9 | install: 10 | - ./travis/install.sh 11 | script: 12 | - cd ci 13 | - go run mage.go -v -w ../ crossBuild 14 | - go run mage.go -v -w ../ lint 15 | - go run mage.go -v -w ../ test 16 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | platform: x64 3 | clone_folder: c:\gopath\src\github.com\sirupsen\logrus 4 | environment: 5 | GOPATH: c:\gopath 6 | branches: 7 | only: 8 | - master 9 | install: 10 | - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% 11 | - go version 12 | build_script: 13 | - go get -t 14 | - go test 15 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin dragonfly freebsd netbsd openbsd 2 | // +build !js 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TIOCGETA 9 | 10 | func isTerminal(fd int) bool { 11 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 12 | return err == nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_js.go: -------------------------------------------------------------------------------- 1 | // +build js 2 | 3 | package logrus 4 | 5 | func isTerminal(fd int) bool { 6 | return false 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_no_terminal.go: -------------------------------------------------------------------------------- 1 | // +build js nacl plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return false 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!js,!windows,!nacl,!plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | ) 9 | 10 | func checkIfTerminal(w io.Writer) bool { 11 | switch v := w.(type) { 12 | case *os.File: 13 | return isTerminal(int(v.Fd())) 14 | default: 15 | return false 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_solaris.go: -------------------------------------------------------------------------------- 1 | package logrus 2 | 3 | import ( 4 | "golang.org/x/sys/unix" 5 | ) 6 | 7 | // IsTerminal returns true if the given file descriptor is a terminal. 8 | func isTerminal(fd int) bool { 9 | _, err := unix.IoctlGetTermio(fd, unix.TCGETA) 10 | return err == nil 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_unix.go: -------------------------------------------------------------------------------- 1 | // +build linux aix zos 2 | // +build !js 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TCGETS 9 | 10 | func isTerminal(fd int) bool { 11 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 12 | return err == nil 13 | } 14 | -------------------------------------------------------------------------------- /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/testcontainers/testcontainers-go/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by golang tooling 2 | debug.test 3 | vendor 4 | 5 | # Generated docs 6 | site/ 7 | .direnv/ 8 | src/mkdocs-codeinclude-plugin 9 | src/pip-delete-this-directory.txt 10 | .idea/ 11 | .DS_Store 12 | 13 | TEST-*.xml 14 | 15 | tcvenv 16 | 17 | **/go.work 18 | 19 | # VS Code settings 20 | .vscode 21 | -------------------------------------------------------------------------------- /vendor/github.com/testcontainers/testcontainers-go/.mockery.yaml: -------------------------------------------------------------------------------- 1 | quiet: True 2 | disable-version-string: True 3 | with-expecter: True 4 | mockname: "mock{{.InterfaceName}}" 5 | filename: "{{ .InterfaceName | lower }}_mock_test.go" 6 | outpkg: "{{.PackageName}}_test" 7 | dir: "{{.InterfaceDir}}" 8 | packages: 9 | github.com/testcontainers/testcontainers-go/wait: 10 | interfaces: 11 | StrategyTarget: 12 | -------------------------------------------------------------------------------- /vendor/github.com/testcontainers/testcontainers-go/Pipfile: -------------------------------------------------------------------------------- 1 | [[source]] 2 | name = "pypi" 3 | url = "https://pypi.org/simple" 4 | verify_ssl = true 5 | 6 | [dev-packages] 7 | 8 | [packages] 9 | mkdocs = "==1.5.3" 10 | mkdocs-codeinclude-plugin = "==0.2.1" 11 | mkdocs-include-markdown-plugin = "==6.2.2" 12 | mkdocs-material = "==9.5.18" 13 | mkdocs-markdownextradata-plugin = "==0.2.6" 14 | 15 | [requires] 16 | python_version = "3.8" 17 | -------------------------------------------------------------------------------- /vendor/github.com/testcontainers/testcontainers-go/generate.go: -------------------------------------------------------------------------------- 1 | package testcontainers 2 | 3 | //go:generate mockery 4 | -------------------------------------------------------------------------------- /vendor/github.com/testcontainers/testcontainers-go/image.go: -------------------------------------------------------------------------------- 1 | package testcontainers 2 | 3 | import ( 4 | "context" 5 | ) 6 | 7 | // ImageInfo represents a summary information of an image 8 | type ImageInfo struct { 9 | ID string 10 | Name string 11 | } 12 | 13 | // ImageProvider allows manipulating images 14 | type ImageProvider interface { 15 | ListImages(context.Context) ([]ImageInfo, error) 16 | SaveImages(context.Context, string, ...string) error 17 | PullImage(context.Context, string) error 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/testcontainers/testcontainers-go/internal/version.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | // Version is the next development version of the application 4 | const Version = "0.34.0" 5 | -------------------------------------------------------------------------------- /vendor/github.com/testcontainers/testcontainers-go/requirements.txt: -------------------------------------------------------------------------------- 1 | mkdocs==1.5.3 2 | mkdocs-codeinclude-plugin==0.2.1 3 | mkdocs-include-markdown-plugin==6.0.4 4 | mkdocs-material==9.5.18 5 | mkdocs-markdownextradata-plugin==0.2.5 6 | -------------------------------------------------------------------------------- /vendor/github.com/testcontainers/testcontainers-go/runtime.txt: -------------------------------------------------------------------------------- 1 | 3.8 2 | -------------------------------------------------------------------------------- /vendor/github.com/testcontainers/testcontainers-go/wait/errors.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package wait 5 | 6 | import ( 7 | "errors" 8 | "syscall" 9 | ) 10 | 11 | func isConnRefusedErr(err error) bool { 12 | return errors.Is(err, syscall.ECONNREFUSED) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/testcontainers/testcontainers-go/wait/errors_windows.go: -------------------------------------------------------------------------------- 1 | package wait 2 | 3 | import ( 4 | "golang.org/x/sys/windows" 5 | ) 6 | 7 | func isConnRefusedErr(err error) bool { 8 | return err == windows.WSAECONNREFUSED 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/sysconf_solaris.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 Tobias Klauser. All rights reserved. 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 sysconf 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | func sysconf(name int) (int64, error) { 10 | if name < 0 { 11 | return -1, errInvalid 12 | } 13 | return unix.Sysconf(name) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/sysconf_unsupported.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 Tobias Klauser. All rights reserved. 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 6 | // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris 7 | 8 | package sysconf 9 | 10 | import ( 11 | "fmt" 12 | "runtime" 13 | ) 14 | 15 | func sysconf(name int) (int64, error) { 16 | return -1, fmt.Errorf("unsupported on %s", runtime.GOOS) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_386.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_freebsd.go 3 | 4 | //go:build freebsd && 386 5 | // +build freebsd,386 6 | 7 | package sysconf 8 | 9 | const ( 10 | _LONG_MAX = 0x7fffffff 11 | _SHRT_MAX = 0x7fff 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_amd64.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_freebsd.go 3 | 4 | //go:build freebsd && amd64 5 | // +build freebsd,amd64 6 | 7 | package sysconf 8 | 9 | const ( 10 | _LONG_MAX = 0x7fffffffffffffff 11 | _SHRT_MAX = 0x7fff 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_arm.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_freebsd.go 3 | 4 | //go:build freebsd && arm 5 | // +build freebsd,arm 6 | 7 | package sysconf 8 | 9 | const ( 10 | _LONG_MAX = 0x7fffffff 11 | _SHRT_MAX = 0x7fff 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_arm64.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_freebsd.go 3 | 4 | //go:build freebsd && arm64 5 | // +build freebsd,arm64 6 | 7 | package sysconf 8 | 9 | const ( 10 | _LONG_MAX = 0x7fffffffffffffff 11 | _SHRT_MAX = 0x7fff 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_riscv64.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_freebsd.go 3 | 4 | //go:build freebsd && riscv64 5 | // +build freebsd,riscv64 6 | 7 | package sysconf 8 | 9 | const ( 10 | _LONG_MAX = 0x7fffffffffffffff 11 | _SHRT_MAX = 0x7fff 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_386.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_netbsd.go 3 | 4 | //go:build netbsd && 386 5 | // +build netbsd,386 6 | 7 | package sysconf 8 | 9 | const ( 10 | _LONG_MAX = 0x7fffffff 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_amd64.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_netbsd.go 3 | 4 | //go:build netbsd && amd64 5 | // +build netbsd,amd64 6 | 7 | package sysconf 8 | 9 | const ( 10 | _LONG_MAX = 0x7fffffffffffffff 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_arm.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_netbsd.go 3 | 4 | //go:build netbsd && arm 5 | // +build netbsd,arm 6 | 7 | package sysconf 8 | 9 | const ( 10 | _LONG_MAX = 0x7fffffff 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_arm64.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_netbsd.go 3 | 4 | //go:build netbsd && arm64 5 | // +build netbsd,arm64 6 | 7 | package sysconf 8 | 9 | const ( 10 | _LONG_MAX = 0x7fffffffffffffff 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/numcpus/.cirrus.yml: -------------------------------------------------------------------------------- 1 | env: 2 | CIRRUS_CLONE_DEPTH: 1 3 | GO_VERSION: go1.20 4 | 5 | freebsd_12_task: 6 | freebsd_instance: 7 | image_family: freebsd-12-3 8 | install_script: | 9 | pkg install -y go 10 | GOBIN=$PWD/bin go install golang.org/dl/${GO_VERSION}@latest 11 | bin/${GO_VERSION} download 12 | build_script: bin/${GO_VERSION} build -buildvcs=false -v ./... 13 | test_script: bin/${GO_VERSION} test -buildvcs=false -race ./... 14 | -------------------------------------------------------------------------------- /vendor/github.com/yusufpapurcu/wmi/README.md: -------------------------------------------------------------------------------- 1 | wmi 2 | === 3 | 4 | Package wmi provides a WQL interface to Windows WMI. 5 | 6 | Note: It interfaces with WMI on the local machine, therefore it only runs on Windows. 7 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.codespellignore: -------------------------------------------------------------------------------- 1 | ot 2 | fo 3 | te 4 | collison 5 | consequentially 6 | ans 7 | nam 8 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.codespellrc: -------------------------------------------------------------------------------- 1 | # https://github.com/codespell-project/codespell 2 | [codespell] 3 | builtin = clear,rare,informal 4 | check-filenames = 5 | check-hidden = 6 | ignore-words = .codespellignore 7 | interactive = 1 8 | skip = .git,go.mod,go.sum,semconv,venv,.tools 9 | uri-ignore-words-list = * 10 | write = 11 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | *.{cmd,[cC][mM][dD]} text eol=crlf 3 | *.{bat,[bB][aA][tT]} text eol=crlf 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | Thumbs.db 3 | 4 | .tools/ 5 | venv/ 6 | .idea/ 7 | .vscode/ 8 | *.iml 9 | *.so 10 | coverage.* 11 | go.work 12 | go.work.sum 13 | 14 | gen/ 15 | 16 | /example/dice/dice 17 | /example/namedtracer/namedtracer 18 | /example/otel-collector/otel-collector 19 | /example/opencensus/opencensus 20 | /example/passthrough/passthrough 21 | /example/prometheus/prometheus 22 | /example/zipkin/zipkin 23 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "opentelemetry-proto"] 2 | path = exporters/otlp/internal/opentelemetry-proto 3 | url = https://github.com/open-telemetry/opentelemetry-proto 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.lycheeignore: -------------------------------------------------------------------------------- 1 | http://localhost 2 | http://jaeger-collector 3 | https://github.com/open-telemetry/opentelemetry-go/milestone/ 4 | https://github.com/open-telemetry/opentelemetry-go/projects 5 | file:///home/runner/work/opentelemetry-go/opentelemetry-go/libraries 6 | file:///home/runner/work/opentelemetry-go/opentelemetry-go/manual 7 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.markdownlint.yaml: -------------------------------------------------------------------------------- 1 | # Default state for all rules 2 | default: true 3 | 4 | # ul-style 5 | MD004: false 6 | 7 | # hard-tabs 8 | MD010: false 9 | 10 | # line-length 11 | MD013: false 12 | 13 | # no-duplicate-header 14 | MD024: 15 | siblings_only: true 16 | 17 | #single-title 18 | MD025: false 19 | 20 | # ol-prefix 21 | MD029: 22 | style: ordered 23 | 24 | # no-inline-html 25 | MD033: false 26 | 27 | # fenced-code-language 28 | MD040: false 29 | 30 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/requirements.txt: -------------------------------------------------------------------------------- 1 | codespell==2.2.6 2 | -------------------------------------------------------------------------------- /vendor/go.uber.org/atomic/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | .DS_Store 3 | /vendor 4 | cover.html 5 | cover.out 6 | lint.log 7 | 8 | # Binaries 9 | *.test 10 | 11 | # Profiling output 12 | *.prof 13 | 14 | # Output of fossa analyzer 15 | /fossa 16 | -------------------------------------------------------------------------------- /vendor/go.uber.org/multierr/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | cover.html 3 | cover.out 4 | /bin 5 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | vendor 10 | 11 | # Architecture specific extensions/prefixes 12 | *.[568vq] 13 | [568vq].out 14 | 15 | *.cgo1.go 16 | *.cgo2.c 17 | _cgo_defun.c 18 | _cgo_gotypes.go 19 | _cgo_export.* 20 | 21 | _testmain.go 22 | 23 | *.exe 24 | *.test 25 | *.prof 26 | *.pprof 27 | *.out 28 | *.log 29 | 30 | /bin 31 | cover.out 32 | cover.html 33 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/checklicense.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | ERROR_COUNT=0 4 | while read -r file 5 | do 6 | case "$(head -1 "${file}")" in 7 | *"Copyright (c) "*" Uber Technologies, Inc.") 8 | # everything's cool 9 | ;; 10 | *) 11 | echo "$file is missing license header." 12 | (( ERROR_COUNT++ )) 13 | ;; 14 | esac 15 | done < <(git ls-files "*\.go") 16 | 17 | exit $ERROR_COUNT 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/chacha20/chacha_arm64.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 gc && !purego 6 | 7 | package chacha20 8 | 9 | const bufSize = 256 10 | 11 | //go:noescape 12 | func xorKeyStreamVX(dst, src []byte, key *[8]uint32, nonce *[3]uint32, counter *uint32) 13 | 14 | func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) { 15 | xorKeyStreamVX(dst, src, &c.key, &c.nonce, &c.counter) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/chacha20/chacha_noasm.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 (!arm64 && !s390x && !ppc64 && !ppc64le) || !gc || purego 6 | 7 | package chacha20 8 | 9 | const bufSize = blockSize 10 | 11 | func (s *Cipher) xorKeyStreamBlocks(dst, src []byte) { 12 | s.xorKeyStreamBlocksGeneric(dst, src) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/chacha20/chacha_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc && !purego && (ppc64 || ppc64le) 6 | 7 | package chacha20 8 | 9 | const bufSize = 256 10 | 11 | //go:noescape 12 | func chaCha20_ctr32_vsx(out, inp *byte, len int, key *[8]uint32, counter *uint32) 13 | 14 | func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) { 15 | chaCha20_ctr32_vsx(&dst[0], &src[0], len(src), &c.key, &c.counter) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.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 (!amd64 && !ppc64le && !ppc64 && !s390x) || !gc || purego 6 | 7 | package poly1305 8 | 9 | type mac struct{ macGeneric } 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | package cpu 8 | 9 | func getisar0() uint64 10 | func getisar1() uint64 11 | func getpfr0() uint64 12 | func getzfr0() uint64 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_x86.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (386 || amd64 || amd64p32) && gc 6 | 7 | package cpu 8 | 9 | // cpuid is implemented in cpu_gc_x86.s for gc compiler 10 | // and in cpu_gccgo.c for gccgo. 11 | func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) 12 | 13 | // xgetbv with ecx = 0 is implemented in cpu_gc_x86.s for gc compiler 14 | // and in cpu_gccgo.c for gccgo. 15 | func xgetbv() (eax, edx uint32) 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gccgo 6 | 7 | package cpu 8 | 9 | func getisar0() uint64 { return 0 } 10 | func getisar1() uint64 { return 0 } 11 | func getpfr0() uint64 { return 0 } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !386 && !amd64 && !amd64p32 && !arm64 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | if err := readHWCAP(); err != nil { 11 | return 12 | } 13 | doinit() 14 | Initialized = true 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && (mips64 || mips64le) 6 | 7 | package cpu 8 | 9 | // HWCAP bits. These are exposed by the Linux kernel 5.4. 10 | const ( 11 | // CPU features 12 | hwcap_MIPS_MSA = 1 << 1 13 | ) 14 | 15 | func doinit() { 16 | // HWCAP feature bits 17 | MIPS64X.HasMSA = isSet(hwCap, hwcap_MIPS_MSA) 18 | } 19 | 20 | func isSet(hwc uint, value uint) bool { 21 | return hwc&value != 0 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && !arm && !arm64 && !mips64 && !mips64le && !ppc64 && !ppc64le && !s390x && !riscv64 6 | 7 | package cpu 8 | 9 | func doinit() {} 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_loong64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build loong64 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 64 10 | 11 | func initOptions() { 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_mips64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build mips64 || mips64le 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | 11 | func initOptions() { 12 | options = []option{ 13 | {Name: "msa", Feature: &MIPS64X.HasMSA}, 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_mipsx.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build mips || mipsle 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | 11 | func initOptions() {} 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 8 | JMP libc_sysctl(SB) 9 | 10 | GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 11 | DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && arm 6 | 7 | package cpu 8 | 9 | func archInit() {} 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && !netbsd && !openbsd && arm64 6 | 7 | package cpu 8 | 9 | func doinit() {} 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_mips64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && (mips64 || mips64le) 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | Initialized = true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !aix && !linux && (ppc64 || ppc64le) 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | PPC64.IsPOWER8 = true 11 | Initialized = true 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_riscv64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && riscv64 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | Initialized = true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_x86.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build 386 || amd64p32 || (amd64 && (!darwin || !gc)) 6 | 7 | package cpu 8 | 9 | func darwinSupportsAVX512() bool { 10 | panic("only implemented for gc && amd64 && darwin") 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ppc64 || ppc64le 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 128 10 | 11 | func initOptions() { 12 | options = []option{ 13 | {Name: "darn", Feature: &PPC64.HasDARN}, 14 | {Name: "scv", Feature: &PPC64.HasSCV}, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_wasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build wasm 6 | 7 | package cpu 8 | 9 | // We're compiling the cpu package for an unknown (software-abstracted) CPU. 10 | // Make CacheLinePad an empty struct and hope that the usual struct alignment 11 | // rules are good enough. 12 | 13 | const cacheLineSize = 0 14 | 15 | func initOptions() {} 16 | 17 | func archInit() {} 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_zos.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | func archInit() { 8 | doinit() 9 | Initialized = true 10 | } 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | 7 | package cpu 8 | 9 | // IsBigEndian records whether the GOARCH's byte order is big endian. 10 | const IsBigEndian = true 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh || wasm 6 | 7 | package cpu 8 | 9 | // IsBigEndian records whether the GOARCH's byte order is big endian. 10 | const IsBigEndian = false 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/runtime_auxv.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | // getAuxvFn is non-nil on Go 1.21+ (via runtime_auxv_go121.go init) 8 | // on platforms that use auxv. 9 | var getAuxvFn func() []uintptr 10 | 11 | func getAuxv() []uintptr { 12 | if getAuxvFn == nil { 13 | return nil 14 | } 15 | return getAuxvFn() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.21 6 | 7 | package cpu 8 | 9 | import ( 10 | _ "unsafe" // for linkname 11 | ) 12 | 13 | //go:linkname runtime_getAuxv runtime.getAuxv 14 | func runtime_getAuxv() []uintptr 15 | 16 | func init() { 17 | getAuxvFn = runtime_getAuxv 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/asm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | TEXT ·use(SB),NOSPLIT,$0 8 | RET 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/mksysnum_plan9.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright 2009 The Go Authors. All rights reserved. 3 | # Use of this source code is governed by a BSD-style 4 | # license that can be found in the LICENSE file. 5 | 6 | COMMAND="mksysnum_plan9.sh $@" 7 | 8 | cat <= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | type Signal = syscall.Signal 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/auxv_unsupported.go: -------------------------------------------------------------------------------- 1 | // Copyright 2025 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.21 && (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Auxv() ([][2]uintptr, error) { 12 | return nil, syscall.ENOTSUP 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc) 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gccgo && linux && amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/mmap_nomremap.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | var mapper = &mmapper{ 10 | active: make(map[*byte][]byte), 11 | mmap: mmap, 12 | munmap: munmap, 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 10 | return ptrace1(request, pid, addr, data) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ios 6 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 10 | return ENOTSUP 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | 7 | package unix 8 | 9 | // ReadDirent reads directory entries from fd and writes them into buf. 10 | func ReadDirent(fd int, buf []byte) (n int, err error) { 11 | return Getdents(fd, buf) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_hurd_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build 386 && hurd 6 | 7 | package unix 8 | 9 | const ( 10 | TIOCGETA = 0x62251713 11 | ) 12 | 13 | type Winsize struct { 14 | Row uint16 15 | Col uint16 16 | Xpixel uint16 17 | Ypixel uint16 18 | } 19 | 20 | type Termios struct { 21 | Iflag uint32 22 | Oflag uint32 23 | Cflag uint32 24 | Lflag uint32 25 | Cc [20]uint8 26 | Ispeed int32 27 | Ospeed int32 28 | } 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_alarm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64) 6 | 7 | package unix 8 | 9 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH 10 | // values. 11 | 12 | //sys Alarm(seconds uint) (remaining uint, err error) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && linux && gc 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //go:noescape 12 | func gettimeofday(tv *Timeval) (err syscall.Errno) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc 6 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build arm && gc && linux 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin && !ios) || zos 6 | 7 | package unix 8 | 9 | // SysvShmCtl performs control operations on the shared memory segment 10 | // specified by id. 11 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 12 | return shmctl(id, cmd, desc) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/vgetrandom_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && go1.24 6 | 7 | package unix 8 | 9 | import _ "unsafe" 10 | 11 | //go:linkname vgetrandom runtime.vgetrandom 12 | //go:noescape 13 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/vgetrandom_unsupported.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux || !go1.24 6 | 7 | package unix 8 | 9 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool) { 10 | return -1, false 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | 7 | package windows 8 | 9 | import "syscall" 10 | 11 | type Errno = syscall.Errno 12 | type SysProcAttr = syscall.SysProcAttr 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build generate 6 | 7 | package windows 8 | 9 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go setupapi_windows.go 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && !race 6 | 7 | package windows 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | 7 | package windows 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + itoa(-val) 12 | } 13 | var buf [32]byte // big enough for int64 14 | i := len(buf) - 1 15 | for val >= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin || dragonfly || freebsd || netbsd || openbsd 6 | 7 | package term 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TIOCGETA 12 | const ioctlWriteTermios = unix.TIOCSETA 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || linux || solaris || zos 6 | 7 | package term 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TCGETS 12 | const ioctlWriteTermios = unix.TCSETS 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/japanese/all.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package japanese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{EUCJP, ISO2022JP, ShiftJIS} 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/simplifiedchinese/all.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simplifiedchinese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{GB18030, GBK, HZGB2312} 13 | -------------------------------------------------------------------------------- /vendor/gopkg.in/natefinch/lumberjack.v2/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | -------------------------------------------------------------------------------- /vendor/gopkg.in/natefinch/lumberjack.v2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - tip 5 | - 1.15.x 6 | - 1.14.x 7 | - 1.13.x 8 | - 1.12.x 9 | 10 | env: 11 | - GO111MODULE=on 12 | -------------------------------------------------------------------------------- /vendor/gopkg.in/natefinch/lumberjack.v2/chown.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package lumberjack 4 | 5 | import ( 6 | "os" 7 | ) 8 | 9 | func chown(_ string, _ os.FileInfo) error { 10 | return nil 11 | } 12 | -------------------------------------------------------------------------------- /vendor/gopkg.in/natefinch/lumberjack.v2/chown_linux.go: -------------------------------------------------------------------------------- 1 | package lumberjack 2 | 3 | import ( 4 | "os" 5 | "syscall" 6 | ) 7 | 8 | // osChown is a var so we can mock it out during tests. 9 | var osChown = os.Chown 10 | 11 | func chown(name string, info os.FileInfo) error { 12 | f, err := os.OpenFile(name, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, info.Mode()) 13 | if err != nil { 14 | return err 15 | } 16 | f.Close() 17 | stat := info.Sys().(*syscall.Stat_t) 18 | return osChown(name, int(stat.Uid), int(stat.Gid)) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v3/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | --------------------------------------------------------------------------------