├── .circleci ├── config.yml ├── install_snapcraft.sh └── update_docs.sh ├── .devcontainer ├── Dockerfile └── devcontainer.json ├── .dockerignore ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── discussion.md │ └── feature_request.md └── workflows │ ├── cd.yml │ ├── ci.yml │ └── sponsors.yml ├── .gitignore ├── .golangci.yml ├── .goreleaser.yml ├── CODE-OF-CONDUCT.md ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── README.md ├── assets └── warp.png ├── coverage.txt ├── docker-compose.yml ├── docs ├── Config.md ├── keybindings │ ├── Keybindings_de.md │ ├── Keybindings_en.md │ ├── Keybindings_es.md │ ├── Keybindings_fr.md │ ├── Keybindings_nl.md │ ├── Keybindings_pl.md │ ├── Keybindings_pt.md │ ├── Keybindings_tr.md │ └── Keybindings_zh.md └── resources │ ├── demo.gif │ ├── demo3.gif │ └── discord.png ├── go.mod ├── go.sum ├── hooks └── build ├── main.go ├── pkg ├── app │ └── app.go ├── cheatsheet │ ├── generate.go │ └── validate.go ├── commands │ ├── container.go │ ├── container_stats.go │ ├── container_stats_test.go │ ├── docker.go │ ├── docker_host_unix.go │ ├── docker_host_windows.go │ ├── dummies.go │ ├── errors.go │ ├── image.go │ ├── network.go │ ├── os.go │ ├── os_default_platform.go │ ├── os_test.go │ ├── os_windows.go │ ├── project.go │ ├── service.go │ ├── ssh │ │ ├── ssh.go │ │ └── ssh_test.go │ └── volume.go ├── config │ ├── app_config.go │ ├── app_config_test.go │ ├── config_default_platform.go │ ├── config_linux.go │ └── config_windows.go ├── gui │ ├── app_status_manager.go │ ├── arrangement.go │ ├── confirmation_panel.go │ ├── container_logs.go │ ├── containers_panel.go │ ├── custom_commands.go │ ├── filtering.go │ ├── focus.go │ ├── gocui.go │ ├── gui.go │ ├── images_panel.go │ ├── keybindings.go │ ├── layout.go │ ├── main_panel.go │ ├── menu_panel.go │ ├── networks_panel.go │ ├── options_menu_panel.go │ ├── panels.go │ ├── panels │ │ ├── context_state.go │ │ ├── filtered_list.go │ │ ├── filtered_list_test.go │ │ ├── list_panel.go │ │ └── side_list_panel.go │ ├── presentation │ │ ├── container_stats.go │ │ ├── containers.go │ │ ├── images.go │ │ ├── menu_items.go │ │ ├── networks.go │ │ ├── projects.go │ │ ├── services.go │ │ └── volumes.go │ ├── project_panel.go │ ├── services_panel.go │ ├── sort_container_test.go │ ├── subprocess.go │ ├── tasks_adapter.go │ ├── theme.go │ ├── types │ │ └── types.go │ ├── view_helpers.go │ ├── views.go │ ├── volumes_panel.go │ └── window.go ├── i18n │ ├── chinese.go │ ├── dutch.go │ ├── english.go │ ├── french.go │ ├── german.go │ ├── i18n.go │ ├── polish.go │ ├── portuguese.go │ ├── spanish.go │ └── turkish.go ├── log │ └── log.go ├── tasks │ └── tasks.go └── utils │ ├── utils.go │ └── utils_test.go ├── scripts ├── bump_gocui.sh ├── bump_lazycore.sh ├── cheatsheet │ └── main.go ├── install_update_linux.sh └── translations │ └── get_required_translations.go ├── test.sh ├── test ├── Dockerfile ├── docker-compose.yml └── print-random-stuff.sh └── vendor ├── github.com ├── 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 ├── OpenPeeDeeP │ └── xdg │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── appveyor.yml │ │ ├── xdg.go │ │ ├── xdg_bsd.go │ │ ├── xdg_darwin.go │ │ ├── xdg_linux.go │ │ └── xdg_windows.go ├── boz │ └── go-throttle │ │ ├── .travis.yml │ │ ├── Makefile │ │ ├── README.md │ │ └── throttle.go ├── cloudfoundry │ └── jibber_jabber │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── jibber_jabber.go │ │ ├── jibber_jabber_unix.go │ │ └── jibber_jabber_windows.go ├── containerd │ └── log │ │ ├── .golangci.yml │ │ ├── LICENSE │ │ ├── README.md │ │ └── context.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 │ ├── cli │ │ ├── AUTHORS │ │ ├── LICENSE │ │ ├── NOTICE │ │ └── cli │ │ │ ├── config │ │ │ ├── config.go │ │ │ ├── configfile │ │ │ │ ├── file.go │ │ │ │ ├── file_unix.go │ │ │ │ └── file_windows.go │ │ │ ├── credentials │ │ │ │ ├── credentials.go │ │ │ │ ├── default_store.go │ │ │ │ ├── default_store_darwin.go │ │ │ │ ├── default_store_linux.go │ │ │ │ ├── default_store_unsupported.go │ │ │ │ ├── default_store_windows.go │ │ │ │ ├── file_store.go │ │ │ │ └── native_store.go │ │ │ └── types │ │ │ │ └── authconfig.go │ │ │ ├── connhelper │ │ │ ├── commandconn │ │ │ │ ├── commandconn.go │ │ │ │ ├── pdeathsig_linux.go │ │ │ │ ├── pdeathsig_nolinux.go │ │ │ │ ├── session_unix.go │ │ │ │ └── session_windows.go │ │ │ ├── connhelper.go │ │ │ └── ssh │ │ │ │ └── ssh.go │ │ │ └── context │ │ │ ├── docker │ │ │ ├── constants.go │ │ │ └── load.go │ │ │ ├── endpoint.go │ │ │ ├── store │ │ │ ├── doc.go │ │ │ ├── io_utils.go │ │ │ ├── metadatastore.go │ │ │ ├── store.go │ │ │ ├── storeconfig.go │ │ │ └── tlsstore.go │ │ │ └── tlsdata.go │ ├── docker-credential-helpers │ │ ├── LICENSE │ │ ├── client │ │ │ ├── client.go │ │ │ └── command.go │ │ └── credentials │ │ │ ├── credentials.go │ │ │ ├── error.go │ │ │ ├── helper.go │ │ │ └── version.go │ ├── 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 │ │ │ ├── ioutils │ │ │ ├── buffer.go │ │ │ ├── bytespipe.go │ │ │ ├── fswriters.go │ │ │ ├── readers.go │ │ │ ├── writeflusher.go │ │ │ └── writers.go │ │ │ └── stdcopy │ │ │ └── stdcopy.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 ├── fatih │ └── color │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── color.go │ │ └── doc.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 ├── fvbommel │ └── sortorder │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── doc.go │ │ └── natsort.go ├── gdamore │ ├── encoding │ │ ├── .appveyor.yml │ │ ├── CODE_OF_CONDUCT.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── ascii.go │ │ ├── charmap.go │ │ ├── doc.go │ │ ├── ebcdic.go │ │ ├── latin1.go │ │ ├── latin5.go │ │ └── utf8.go │ └── tcell │ │ └── v2 │ │ ├── .appveyor.yml │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── AUTHORS │ │ ├── CHANGESv2.md │ │ ├── LICENSE │ │ ├── README-wasm.md │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── TUTORIAL.md │ │ ├── UKRAINE.md │ │ ├── attr.go │ │ ├── cell.go │ │ ├── charset_stub.go │ │ ├── charset_unix.go │ │ ├── charset_windows.go │ │ ├── color.go │ │ ├── colorfit.go │ │ ├── console_stub.go │ │ ├── console_win.go │ │ ├── doc.go │ │ ├── encoding.go │ │ ├── errors.go │ │ ├── event.go │ │ ├── focus.go │ │ ├── interrupt.go │ │ ├── key.go │ │ ├── mouse.go │ │ ├── nonblock_bsd.go │ │ ├── nonblock_unix.go │ │ ├── paste.go │ │ ├── resize.go │ │ ├── runes.go │ │ ├── screen.go │ │ ├── simulation.go │ │ ├── stdin_unix.go │ │ ├── style.go │ │ ├── terminfo │ │ ├── .gitignore │ │ ├── README.md │ │ ├── TERMINALS.md │ │ ├── a │ │ │ ├── aixterm │ │ │ │ └── term.go │ │ │ ├── alacritty │ │ │ │ ├── direct.go │ │ │ │ └── term.go │ │ │ └── ansi │ │ │ │ └── term.go │ │ ├── b │ │ │ └── beterm │ │ │ │ └── term.go │ │ ├── base │ │ │ └── base.go │ │ ├── c │ │ │ └── cygwin │ │ │ │ └── term.go │ │ ├── d │ │ │ └── dtterm │ │ │ │ └── term.go │ │ ├── dynamic │ │ │ └── dynamic.go │ │ ├── e │ │ │ └── emacs │ │ │ │ └── term.go │ │ ├── extended │ │ │ └── extended.go │ │ ├── f │ │ │ └── foot │ │ │ │ └── foot.go │ │ ├── g │ │ │ └── gnome │ │ │ │ └── term.go │ │ ├── gen.sh │ │ ├── h │ │ │ └── hpterm │ │ │ │ └── term.go │ │ ├── k │ │ │ ├── konsole │ │ │ │ └── term.go │ │ │ └── kterm │ │ │ │ └── term.go │ │ ├── l │ │ │ └── linux │ │ │ │ └── term.go │ │ ├── models.txt │ │ ├── p │ │ │ └── pcansi │ │ │ │ └── term.go │ │ ├── r │ │ │ └── rxvt │ │ │ │ └── term.go │ │ ├── s │ │ │ ├── screen │ │ │ │ └── term.go │ │ │ ├── simpleterm │ │ │ │ └── term.go │ │ │ └── sun │ │ │ │ └── term.go │ │ ├── t │ │ │ └── tmux │ │ │ │ └── term.go │ │ ├── terminfo.go │ │ ├── v │ │ │ ├── vt100 │ │ │ │ └── term.go │ │ │ ├── vt102 │ │ │ │ └── term.go │ │ │ ├── vt220 │ │ │ │ └── term.go │ │ │ ├── vt320 │ │ │ │ └── term.go │ │ │ ├── vt400 │ │ │ │ └── term.go │ │ │ ├── vt420 │ │ │ │ └── term.go │ │ │ └── vt52 │ │ │ │ └── term.go │ │ ├── w │ │ │ ├── wy50 │ │ │ │ └── term.go │ │ │ ├── wy60 │ │ │ │ └── term.go │ │ │ └── wy99_ansi │ │ │ │ └── term.go │ │ └── x │ │ │ ├── xfce │ │ │ └── term.go │ │ │ ├── xterm │ │ │ ├── direct.go │ │ │ └── term.go │ │ │ └── xterm_kitty │ │ │ └── term.go │ │ ├── terms_default.go │ │ ├── terms_dynamic.go │ │ ├── terms_static.go │ │ ├── tscreen.go │ │ ├── tscreen_stub.go │ │ ├── tscreen_unix.go │ │ ├── tty.go │ │ ├── tty_unix.go │ │ └── wscreen.go ├── go-errors │ └── errors │ │ ├── .travis.yml │ │ ├── LICENSE.MIT │ │ ├── README.md │ │ ├── error.go │ │ ├── error_1_13.go │ │ ├── error_backward.go │ │ ├── join_unwrap_1_20.go │ │ ├── join_unwrap_backward.go │ │ ├── parse_panic.go │ │ └── stackframe.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 ├── goccy │ └── go-yaml │ │ ├── .codecov.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── ast │ │ └── ast.go │ │ ├── decode.go │ │ ├── encode.go │ │ ├── error.go │ │ ├── internal │ │ └── errors │ │ │ └── error.go │ │ ├── lexer │ │ └── lexer.go │ │ ├── option.go │ │ ├── parser │ │ ├── context.go │ │ └── parser.go │ │ ├── path.go │ │ ├── printer │ │ └── printer.go │ │ ├── scanner │ │ ├── context.go │ │ └── scanner.go │ │ ├── stdlib_quote.go │ │ ├── struct.go │ │ ├── token │ │ └── token.go │ │ ├── validate.go │ │ └── yaml.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 ├── gookit │ └── color │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── README.zh-CN.md │ │ ├── color.go │ │ ├── color_16.go │ │ ├── color_256.go │ │ ├── color_rgb.go │ │ ├── color_tag.go │ │ ├── convert.go │ │ ├── detect_env.go │ │ ├── detect_nonwin.go │ │ ├── detect_windows.go │ │ ├── printer.go │ │ ├── quickstart.go │ │ ├── style.go │ │ └── utils.go ├── imdario │ └── 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 ├── integrii │ └── flaggy │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── argumentParser.go │ │ ├── flag.go │ │ ├── help.go │ │ ├── helpValues.go │ │ ├── logo.png │ │ ├── main.go │ │ ├── parsedValue.go │ │ ├── parser.go │ │ ├── positionalValue.go │ │ └── subCommand.go ├── jesseduffield │ ├── asciigraph │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.rst │ │ ├── asciigraph.go │ │ ├── options.go │ │ └── utils.go │ ├── gocui │ │ ├── .gitignore │ │ ├── AUTHORS │ │ ├── CHANGES_tcell.md │ │ ├── CODE_OF_CONDUCT.md │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── attribute.go │ │ ├── doc.go │ │ ├── edit.go │ │ ├── escape.go │ │ ├── gui.go │ │ ├── gui_others.go │ │ ├── gui_windows.go │ │ ├── keybinding.go │ │ ├── loader.go │ │ ├── scrollbar.go │ │ ├── task.go │ │ ├── task_manager.go │ │ ├── tcell_driver.go │ │ ├── text_area.go │ │ └── view.go │ ├── kill │ │ ├── LICENSE │ │ ├── README.md │ │ ├── kill_default_platform.go │ │ └── kill_windows.go │ ├── lazycore │ │ ├── LICENSE │ │ └── pkg │ │ │ ├── boxlayout │ │ │ └── boxlayout.go │ │ │ └── utils │ │ │ ├── once_writer.go │ │ │ └── utils.go │ └── yaml │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── LICENSE.libyaml │ │ ├── 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 ├── lucasb-eyer │ └── go-colorful │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── colorgens.go │ │ ├── colors.go │ │ ├── happy_palettegen.go │ │ ├── hexcolor.go │ │ ├── hsluv-snapshot-rev4.json │ │ ├── hsluv.go │ │ ├── soft_palettegen.go │ │ └── warm_palettegen.go ├── mattn │ ├── go-colorable │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── colorable_appengine.go │ │ ├── colorable_others.go │ │ ├── colorable_windows.go │ │ ├── go.test.sh │ │ └── noncolorable.go │ ├── go-isatty │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── doc.go │ │ ├── go.test.sh │ │ ├── isatty_bsd.go │ │ ├── isatty_others.go │ │ ├── isatty_plan9.go │ │ ├── isatty_solaris.go │ │ ├── isatty_tcgets.go │ │ ├── isatty_windows.go │ │ └── renovate.json │ └── go-runewidth │ │ ├── LICENSE │ │ ├── README.md │ │ ├── runewidth.go │ │ ├── runewidth_appengine.go │ │ ├── runewidth_js.go │ │ ├── runewidth_posix.go │ │ ├── runewidth_table.go │ │ └── runewidth_windows.go ├── mcuadros │ └── go-lookup │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ └── lookup.go ├── mgutz │ └── str │ │ ├── .gitignore │ │ ├── CREDITS │ │ ├── LICENSE │ │ ├── README.md │ │ ├── VERSION │ │ ├── doc.go │ │ ├── funcsAO.go │ │ └── funcsPZ.go ├── moby │ └── docker-image-spec │ │ ├── LICENSE │ │ └── specs-go │ │ └── v1 │ │ └── image.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 ├── petermattis │ └── goid │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── goid.go │ │ ├── goid_gccgo.go │ │ ├── goid_go1.3.c │ │ ├── goid_go1.3.go │ │ ├── goid_go1.4.go │ │ ├── goid_go1.4.s │ │ ├── goid_go1.5_amd64.go │ │ ├── goid_go1.5_amd64.s │ │ ├── goid_go1.5_arm.go │ │ ├── goid_go1.5_arm.s │ │ ├── goid_slow.go │ │ ├── runtime_gccgo_go1.8.go │ │ ├── runtime_go1.5.go │ │ ├── runtime_go1.6.go │ │ └── runtime_go1.9.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 ├── rivo │ └── uniseg │ │ ├── LICENSE.txt │ │ ├── README.md │ │ ├── doc.go │ │ ├── eastasianwidth.go │ │ ├── emojipresentation.go │ │ ├── gen_breaktest.go │ │ ├── gen_properties.go │ │ ├── grapheme.go │ │ ├── graphemeproperties.go │ │ ├── graphemerules.go │ │ ├── line.go │ │ ├── lineproperties.go │ │ ├── linerules.go │ │ ├── properties.go │ │ ├── sentence.go │ │ ├── sentenceproperties.go │ │ ├── sentencerules.go │ │ ├── step.go │ │ ├── width.go │ │ ├── word.go │ │ ├── wordproperties.go │ │ └── wordrules.go ├── samber │ └── lo │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── Dockerfile │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── channel.go │ │ ├── concurrency.go │ │ ├── condition.go │ │ ├── constraints.go │ │ ├── docker-compose.yml │ │ ├── errors.go │ │ ├── find.go │ │ ├── func.go │ │ ├── intersect.go │ │ ├── map.go │ │ ├── math.go │ │ ├── retry.go │ │ ├── slice.go │ │ ├── string.go │ │ ├── test.go │ │ ├── tuples.go │ │ ├── type_manipulation.go │ │ └── types.go ├── sasha-s │ └── go-deadlock │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── Readme.md │ │ ├── deadlock.go │ │ ├── deadlock_map.go │ │ ├── stacktraces.go │ │ └── test.sh ├── 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 ├── spkg │ └── bom │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── bom.go │ │ ├── discard_go14.go │ │ └── discard_go15.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 └── xo │ └── terminfo │ ├── .gitignore │ ├── LICENSE │ ├── README.md │ ├── caps.go │ ├── capvals.go │ ├── color.go │ ├── load.go │ ├── param.go │ ├── stack.go │ ├── terminfo.go │ └── util.go ├── go.opentelemetry.io ├── contrib │ └── instrumentation │ │ └── net │ │ └── http │ │ └── otelhttp │ │ ├── LICENSE │ │ ├── client.go │ │ ├── common.go │ │ ├── config.go │ │ ├── doc.go │ │ ├── handler.go │ │ ├── internal │ │ ├── semconv │ │ │ ├── env.go │ │ │ ├── util.go │ │ │ ├── v1.20.0.go │ │ │ └── v1.24.0.go │ │ └── semconvutil │ │ │ ├── gen.go │ │ │ ├── httpconv.go │ │ │ └── netconv.go │ │ ├── labeler.go │ │ ├── transport.go │ │ ├── version.go │ │ └── wrap.go └── otel │ ├── .codespellignore │ ├── .codespellrc │ ├── .gitattributes │ ├── .gitignore │ ├── .golangci.yml │ ├── .lycheeignore │ ├── .markdownlint.yaml │ ├── CHANGELOG.md │ ├── CODEOWNERS │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── RELEASING.md │ ├── VERSIONING.md │ ├── attribute │ ├── README.md │ ├── doc.go │ ├── encoder.go │ ├── filter.go │ ├── iterator.go │ ├── key.go │ ├── kv.go │ ├── set.go │ ├── type_string.go │ └── value.go │ ├── baggage │ ├── README.md │ ├── baggage.go │ ├── context.go │ └── doc.go │ ├── codes │ ├── README.md │ ├── 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 │ ├── README.md │ ├── asyncfloat64.go │ ├── asyncint64.go │ ├── config.go │ ├── doc.go │ ├── embedded │ │ ├── README.md │ │ └── embedded.go │ ├── instrument.go │ ├── meter.go │ ├── syncfloat64.go │ └── syncint64.go │ ├── propagation.go │ ├── propagation │ ├── README.md │ ├── baggage.go │ ├── doc.go │ ├── propagation.go │ └── trace_context.go │ ├── renovate.json │ ├── requirements.txt │ ├── semconv │ ├── v1.20.0 │ │ ├── README.md │ │ ├── attribute_group.go │ │ ├── doc.go │ │ ├── event.go │ │ ├── exception.go │ │ ├── http.go │ │ ├── resource.go │ │ ├── schema.go │ │ └── trace.go │ └── v1.24.0 │ │ ├── README.md │ │ ├── attribute_group.go │ │ ├── doc.go │ │ ├── event.go │ │ ├── exception.go │ │ ├── metric.go │ │ ├── resource.go │ │ ├── schema.go │ │ └── trace.go │ ├── trace.go │ ├── trace │ ├── LICENSE │ ├── README.md │ ├── config.go │ ├── context.go │ ├── doc.go │ ├── embedded │ │ ├── README.md │ │ └── embedded.go │ ├── nonrecording.go │ ├── noop.go │ ├── trace.go │ └── tracestate.go │ ├── verify_examples.sh │ ├── verify_readmes.sh │ ├── version.go │ └── versions.yaml ├── golang.org └── x │ ├── exp │ ├── LICENSE │ ├── PATENTS │ └── constraints │ │ └── constraints.go │ ├── sys │ ├── LICENSE │ ├── PATENTS │ ├── 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 │ │ ├── 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 │ │ ├── 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 │ │ ├── encoding.go │ │ └── internal │ │ │ └── identifier │ │ │ ├── identifier.go │ │ │ └── mib.go │ └── transform │ │ └── transform.go │ └── xerrors │ ├── LICENSE │ ├── PATENTS │ ├── README │ ├── adaptor.go │ ├── codereview.cfg │ ├── doc.go │ ├── errors.go │ ├── fmt.go │ ├── format.go │ ├── frame.go │ ├── internal │ └── internal.go │ └── wrap.go ├── gopkg.in └── 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 /.circleci/install_snapcraft.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | sudo apt-get update 4 | 5 | sudo apt-get install -y \ 6 | squashfs-tools \ 7 | python3-pip \ 8 | python3-apt \ 9 | python3-debian \ 10 | python3-pyelftools \ 11 | python3-yaml \ 12 | python3-tabulate \ 13 | python3-jsonschema \ 14 | python3-click \ 15 | python3-pymacaroons \ 16 | python3-simplejson \ 17 | python3-progressbar \ 18 | python3-requests-toolbelt \ 19 | python3-requests-unixsocket 20 | 21 | sudo pip3 install \ 22 | petname \ 23 | snapcraft 24 | 25 | snapcraft --version 26 | -------------------------------------------------------------------------------- /.circleci/update_docs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -ex 4 | 5 | # see if we have a new cheatsheet 6 | # if other docs end up being generated automatically we can chuck in the relevant scripts here 7 | go run scripts/generate_cheatsheet.go 8 | 9 | # commit and push if we have a change 10 | if [[ -z $(git status -s -- docs/*) ]]; then 11 | echo "no changes to commit in the docs directory" 12 | exit 0 13 | fi 14 | 15 | echo "committing updated docs" 16 | 17 | git config user.name "lazydocker bot" 18 | git config user.email "jessedduffield@gmail.com" 19 | 20 | git checkout master # just making sure we're up to date 21 | git pull 22 | git add docs/* 23 | git commit -m "update docs" 24 | git push -u origin master -------------------------------------------------------------------------------- /.devcontainer/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mcr.microsoft.com/devcontainers/go:bullseye 2 | 3 | RUN apt-get update && apt-get install -y \ 4 | curl \ 5 | git \ 6 | && rm -rf /var/lib/apt/lists/* 7 | 8 | RUN go install mvdan.cc/gofumpt@latest 9 | ENV PATH="/root/go/bin:${PATH}" 10 | RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.0 11 | RUN golangci-lint --version 12 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | .circleci 2 | .github 3 | docs 4 | test 5 | .gitignore 6 | .goreleaser.yml 7 | *.md 8 | coverage.txt 9 | Dockerfile 10 | LICENSE 11 | test.sh 12 | .git 13 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [jesseduffield] 4 | custom: ['https://donorbox.org/lazygit'] 5 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/discussion.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Discussion 3 | about: For starting a discussion 4 | title: '' 5 | labels: discussion 6 | assignees: '' 7 | 8 | --- 9 | 10 | 11 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: enhancement 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/workflows/cd.yml: -------------------------------------------------------------------------------- 1 | name: Continuous Delivery 2 | 3 | on: 4 | push: 5 | tags: 6 | - "v*" 7 | 8 | jobs: 9 | goreleaser: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: Checkout code 13 | uses: actions/checkout@v2 14 | - name: Unshallow repo 15 | run: git fetch --prune --unshallow 16 | - name: Setup Go 17 | uses: actions/setup-go@v1 18 | with: 19 | go-version: 1.21.x 20 | - name: Run goreleaser 21 | uses: goreleaser/goreleaser-action@v1 22 | with: 23 | distribution: goreleaser 24 | version: v1.17.2 25 | args: release --clean 26 | env: 27 | GITHUB_TOKEN: ${{secrets.TOKEN_GITHUB}} 28 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | lazydocker* 2 | TODO.md 3 | Lazydocker.code-workspace 4 | .vscode 5 | .idea 6 | -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- 1 | linters: 2 | disable: 3 | - structcheck # gives false positives 4 | enable: 5 | - gofumpt 6 | - thelper 7 | - goimports 8 | - tparallel 9 | - wastedassign 10 | - exportloopref 11 | - unparam 12 | - prealloc 13 | - unconvert 14 | - exhaustive 15 | - makezero 16 | - nakedret 17 | # - goconst # TODO: enable and fix issues 18 | fast: false 19 | 20 | linters-settings: 21 | exhaustive: 22 | default-signifies-exhaustive: true 23 | 24 | nakedret: 25 | # the gods will judge me but I just don't like naked returns at all 26 | max-func-lines: 0 27 | 28 | run: 29 | go: '1.21' 30 | timeout: 10m 31 | -------------------------------------------------------------------------------- /assets/warp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesseduffield/lazydocker/bedde4a03791e678c510b98d0de8b0c2d23d8efa/assets/warp.png -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | services: 3 | lazydocker: 4 | build: 5 | context: https://github.com/jesseduffield/lazydocker.git 6 | args: 7 | BASE_IMAGE_BUILDER: golang 8 | GOARCH: amd64 9 | GOARM: 10 | image: lazyteam/lazydocker 11 | container_name: lazydocker 12 | stdin_open: true 13 | tty: true 14 | volumes: 15 | - /var/run/docker.sock:/var/run/docker.sock 16 | - ./config:/.config/jesseduffield/lazydocker 17 | -------------------------------------------------------------------------------- /docs/resources/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesseduffield/lazydocker/bedde4a03791e678c510b98d0de8b0c2d23d8efa/docs/resources/demo.gif -------------------------------------------------------------------------------- /docs/resources/demo3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesseduffield/lazydocker/bedde4a03791e678c510b98d0de8b0c2d23d8efa/docs/resources/demo3.gif -------------------------------------------------------------------------------- /docs/resources/discord.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesseduffield/lazydocker/bedde4a03791e678c510b98d0de8b0c2d23d8efa/docs/resources/discord.png -------------------------------------------------------------------------------- /hooks/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ 4 | --build-arg VCS_REF=`git rev-parse --short HEAD` \ 5 | --build-arg VERSION=`git describe --abbrev=0 --tag` \ 6 | -t $IMAGE_NAME . 7 | -------------------------------------------------------------------------------- /pkg/commands/container_stats_test.go: -------------------------------------------------------------------------------- 1 | package commands 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/stretchr/testify/assert" 7 | ) 8 | 9 | func TestCalculateContainerCPUPercentage(t *testing.T) { 10 | container := &ContainerStats{} 11 | container.CPUStats.CPUUsage.TotalUsage = 10 12 | container.CPUStats.SystemCPUUsage = 10 13 | container.PrecpuStats.CPUUsage.TotalUsage = 5 14 | container.PrecpuStats.SystemCPUUsage = 2 15 | 16 | assert.EqualValues(t, 62.5, container.CalculateContainerCPUPercentage()) 17 | } 18 | -------------------------------------------------------------------------------- /pkg/commands/docker_host_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | 3 | package commands 4 | 5 | const ( 6 | defaultDockerHost = "unix:///var/run/docker.sock" 7 | ) 8 | -------------------------------------------------------------------------------- /pkg/commands/docker_host_windows.go: -------------------------------------------------------------------------------- 1 | package commands 2 | 3 | const ( 4 | defaultDockerHost = "npipe:////./pipe/docker_engine" 5 | ) 6 | -------------------------------------------------------------------------------- /pkg/commands/os_default_platform.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package commands 5 | 6 | import ( 7 | "runtime" 8 | ) 9 | 10 | func getPlatform() *Platform { 11 | return &Platform{ 12 | os: runtime.GOOS, 13 | shell: "bash", 14 | shellArg: "-c", 15 | openCommand: "open {{filename}}", 16 | openLinkCommand: "open {{link}}", 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /pkg/commands/os_windows.go: -------------------------------------------------------------------------------- 1 | package commands 2 | 3 | func getPlatform() *Platform { 4 | return &Platform{ 5 | os: "windows", 6 | shell: "cmd", 7 | shellArg: "/c", 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /pkg/commands/project.go: -------------------------------------------------------------------------------- 1 | package commands 2 | 3 | type Project struct { 4 | Name string 5 | } 6 | -------------------------------------------------------------------------------- /pkg/config/config_default_platform.go: -------------------------------------------------------------------------------- 1 | //go:build !windows && !linux 2 | // +build !windows,!linux 3 | 4 | package config 5 | 6 | // GetPlatformDefaultConfig gets the defaults for the platform 7 | func GetPlatformDefaultConfig() OSConfig { 8 | return OSConfig{ 9 | OpenCommand: "open {{filename}}", 10 | OpenLinkCommand: "open {{link}}", 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /pkg/config/config_linux.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | // GetPlatformDefaultConfig gets the defaults for the platform 4 | func GetPlatformDefaultConfig() OSConfig { 5 | return OSConfig{ 6 | OpenCommand: `sh -c "xdg-open {{filename}} >/dev/null"`, 7 | OpenLinkCommand: `sh -c "xdg-open {{link}} >/dev/null"`, 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /pkg/config/config_windows.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | // GetPlatformDefaultConfig gets the defaults for the platform 4 | func GetPlatformDefaultConfig() OSConfig { 5 | return OSConfig{ 6 | OpenCommand: `cmd /c "start "" {{filename}}"`, 7 | OpenLinkCommand: `cmd /c "start "" {{link}}"`, 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /pkg/gui/panels.go: -------------------------------------------------------------------------------- 1 | package gui 2 | 3 | import "github.com/jesseduffield/lazydocker/pkg/gui/panels" 4 | 5 | func (gui *Gui) intoInterface() panels.IGui { 6 | return gui 7 | } 8 | -------------------------------------------------------------------------------- /pkg/gui/presentation/images.go: -------------------------------------------------------------------------------- 1 | package presentation 2 | 3 | import ( 4 | "github.com/jesseduffield/lazydocker/pkg/commands" 5 | "github.com/jesseduffield/lazydocker/pkg/utils" 6 | ) 7 | 8 | func GetImageDisplayStrings(image *commands.Image) []string { 9 | return []string{ 10 | image.Name, 11 | image.Tag, 12 | utils.FormatDecimalBytes(int(image.Image.Size)), 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /pkg/gui/presentation/menu_items.go: -------------------------------------------------------------------------------- 1 | package presentation 2 | 3 | import "github.com/jesseduffield/lazydocker/pkg/gui/types" 4 | 5 | func GetMenuItemDisplayStrings(menuItem *types.MenuItem) []string { 6 | return menuItem.LabelColumns 7 | } 8 | -------------------------------------------------------------------------------- /pkg/gui/presentation/networks.go: -------------------------------------------------------------------------------- 1 | package presentation 2 | 3 | import "github.com/jesseduffield/lazydocker/pkg/commands" 4 | 5 | func GetNetworkDisplayStrings(network *commands.Network) []string { 6 | return []string{network.Network.Driver, network.Name} 7 | } 8 | -------------------------------------------------------------------------------- /pkg/gui/presentation/projects.go: -------------------------------------------------------------------------------- 1 | package presentation 2 | 3 | import "github.com/jesseduffield/lazydocker/pkg/commands" 4 | 5 | func GetProjectDisplayStrings(project *commands.Project) []string { 6 | return []string{project.Name} 7 | } 8 | -------------------------------------------------------------------------------- /pkg/gui/presentation/volumes.go: -------------------------------------------------------------------------------- 1 | package presentation 2 | 3 | import "github.com/jesseduffield/lazydocker/pkg/commands" 4 | 5 | func GetVolumeDisplayStrings(volume *commands.Volume) []string { 6 | return []string{volume.Volume.Driver, volume.Name} 7 | } 8 | -------------------------------------------------------------------------------- /pkg/gui/theme.go: -------------------------------------------------------------------------------- 1 | package gui 2 | 3 | import ( 4 | "github.com/jesseduffield/gocui" 5 | ) 6 | 7 | // GetOptionsPanelTextColor gets the color of the options panel text 8 | func (gui *Gui) GetOptionsPanelTextColor() gocui.Attribute { 9 | return GetGocuiStyle(gui.Config.UserConfig.Gui.Theme.OptionsTextColor) 10 | } 11 | 12 | // SetColorScheme sets the color scheme for the app based on the user config 13 | func (gui *Gui) SetColorScheme() error { 14 | gui.g.FgColor = GetGocuiStyle(gui.Config.UserConfig.Gui.Theme.InactiveBorderColor) 15 | gui.g.SelFgColor = GetGocuiStyle(gui.Config.UserConfig.Gui.Theme.ActiveBorderColor) 16 | gui.g.FrameColor = gui.g.FgColor 17 | gui.g.SelFrameColor = gui.g.SelFgColor 18 | return nil 19 | } 20 | -------------------------------------------------------------------------------- /pkg/gui/types/types.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | type MenuItem struct { 4 | Label string 5 | 6 | // alternative to Label. Allows specifying columns which will be auto-aligned 7 | LabelColumns []string 8 | 9 | OnPress func() error 10 | 11 | // Only applies when Label is used 12 | OpensMenu bool 13 | } 14 | -------------------------------------------------------------------------------- /pkg/gui/window.go: -------------------------------------------------------------------------------- 1 | package gui 2 | 3 | // func (gui *Gui) currentWindow() string { 4 | // // at the moment, we only have one view per window in lazydocker, so we 5 | // // are using the view name as the window name 6 | // return gui.currentViewName() 7 | // } 8 | 9 | // excludes popups 10 | func (gui *Gui) currentStaticWindowName() string { 11 | return gui.currentStaticViewName() 12 | } 13 | 14 | func (gui *Gui) currentSideWindowName() string { 15 | return gui.currentSideViewName() 16 | } 17 | -------------------------------------------------------------------------------- /scripts/bump_gocui.sh: -------------------------------------------------------------------------------- 1 | # Go's proxy servers are not very up-to-date so that's why we use `GOPROXY=direct` 2 | # We specify the `awesome` branch to avoid the default behaviour of looking for a semver tag. 3 | GOPROXY=direct go get -u github.com/jesseduffield/gocui@awesome && go mod vendor && go mod tidy 4 | 5 | # Note to self if you ever want to fork a repo be sure to use this same approach: it's important to use the branch name (e.g. master) 6 | -------------------------------------------------------------------------------- /scripts/bump_lazycore.sh: -------------------------------------------------------------------------------- 1 | # Go's proxy servers are not very up-to-date so that's why we use `GOPROXY=direct` 2 | # We specify the `awesome` branch to avoid the default behaviour of looking for a semver tag. 3 | GOPROXY=direct go get -u github.com/jesseduffield/lazycore@master && go mod vendor && go mod tidy 4 | 5 | # Note to self if you ever want to fork a repo be sure to use this same approach: it's important to use the branch name (e.g. master) 6 | -------------------------------------------------------------------------------- /scripts/cheatsheet/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "log" 6 | "os" 7 | 8 | "github.com/jesseduffield/lazydocker/pkg/cheatsheet" 9 | ) 10 | 11 | func main() { 12 | if len(os.Args) < 2 { 13 | log.Fatal("Please provide a command: one of 'generate', 'check'") 14 | } 15 | 16 | command := os.Args[1] 17 | 18 | switch command { 19 | case "generate": 20 | cheatsheet.Generate() 21 | fmt.Printf("\nGenerated cheatsheets in %s\n", cheatsheet.GetKeybindingsDir()) 22 | case "check": 23 | cheatsheet.Check() 24 | default: 25 | log.Fatal("\nUnknown command. Expected one of 'generate', 'check'") 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /scripts/translations/get_required_translations.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "reflect" 6 | 7 | "github.com/jesseduffield/lazydocker/pkg/i18n" 8 | ) 9 | 10 | func main() { 11 | fmt.Println(getOutstandingTranslations()) 12 | } 13 | 14 | // adapted from https://github.com/a8m/reflect-examples#read-struct-tags 15 | func getOutstandingTranslations() string { 16 | output := "" 17 | for languageCode, translationSet := range i18n.GetTranslationSets() { 18 | output += languageCode + ":\n" 19 | v := reflect.ValueOf(translationSet) 20 | 21 | for i := 0; i < v.NumField(); i++ { 22 | value := v.Field(i).String() 23 | if value == "" { 24 | output += v.Type().Field(i).Name + "\n" 25 | } 26 | } 27 | output += "\n" 28 | } 29 | return output 30 | } 31 | -------------------------------------------------------------------------------- /test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | export GOFLAGS=-mod=vendor 7 | 8 | use_go_test=false 9 | if command -v gotest; then 10 | use_go_test=true 11 | fi 12 | 13 | for d in $( find ./* -maxdepth 10 ! -path "./vendor*" ! -path "./.git*" ! -path "./scripts*" -type d); do 14 | if ls $d/*.go &> /dev/null; then 15 | args="-race -coverprofile=profile.out -covermode=atomic $d" 16 | if [ "$use_go_test" == true ]; then 17 | gotest $args 18 | else 19 | go test $args 20 | fi 21 | if [ -f profile.out ]; then 22 | cat profile.out >> coverage.txt 23 | rm profile.out 24 | fi 25 | fi 26 | done 27 | -------------------------------------------------------------------------------- /test/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:latest 2 | 3 | COPY . /app 4 | -------------------------------------------------------------------------------- /test/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3.5" 2 | services: 3 | my-service: 4 | build: 5 | dockerfile: Dockerfile 6 | context: . 7 | command: /app/print-random-stuff.sh 8 | depends_on: 9 | - my-service2 10 | ports: 11 | - 123:321 12 | 13 | my-service2: 14 | build: 15 | dockerfile: Dockerfile 16 | context: . 17 | command: /app/print-random-stuff.sh 18 | ports: 19 | - 12345:12345 20 | 21 | my-service3: 22 | build: 23 | dockerfile: Dockerfile 24 | context: . 25 | command: /app/print-random-stuff.sh 26 | -------------------------------------------------------------------------------- /test/print-random-stuff.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | while true 4 | do 5 | echo $((1 + $RANDOM % 10)) 6 | sleep 1 7 | done 8 | -------------------------------------------------------------------------------- /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/internal/socket/rawaddr.go: -------------------------------------------------------------------------------- 1 | package socket 2 | 3 | import ( 4 | "unsafe" 5 | ) 6 | 7 | // RawSockaddr allows structs to be used with [Bind] and [ConnectEx]. The 8 | // struct must meet the Win32 sockaddr requirements specified here: 9 | // https://docs.microsoft.com/en-us/windows/win32/winsock/sockaddr-2 10 | // 11 | // Specifically, the struct size must be least larger than an int16 (unsigned short) 12 | // for the address family. 13 | type RawSockaddr interface { 14 | // Sockaddr returns a pointer to the RawSockaddr and its struct size, allowing 15 | // for the RawSockaddr's data to be overwritten by syscalls (if necessary). 16 | // 17 | // It is the callers responsibility to validate that the values are valid; invalid 18 | // pointers or size can cause a panic. 19 | Sockaddr() (unsafe.Pointer, int32, error) 20 | } 21 | -------------------------------------------------------------------------------- /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/OpenPeeDeeP/xdg/.gitignore: -------------------------------------------------------------------------------- 1 | *.test 2 | *.out 3 | .DS_STORE 4 | -------------------------------------------------------------------------------- /vendor/github.com/OpenPeeDeeP/xdg/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.11.x 4 | os: 5 | - linux 6 | - osx 7 | before_install: 8 | - go get -t -v ./... 9 | script: 10 | - go test -v -race -covermode=atomic -coverprofile=coverage.txt 11 | after_success: 12 | - bash <(curl -s https://codecov.io/bash) 13 | -------------------------------------------------------------------------------- /vendor/github.com/OpenPeeDeeP/xdg/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: 0.0.1_{build} 2 | build: off 3 | platform: x64 4 | clone_folder: c:\gopath\src\github.com\OpenPeeDeeP\xdg 5 | environment: 6 | GOPATH: c:\gopath 7 | stack: go 1.11 8 | install: 9 | - go get -t -v ./... 10 | - cinst codecov 11 | before_test: 12 | - go vet ./... 13 | test_script: 14 | - go test -v -race -covermode=atomic -coverprofile=coverage.txt 15 | on_success: 16 | - codecov -f coverage.txt 17 | -------------------------------------------------------------------------------- /vendor/github.com/OpenPeeDeeP/xdg/xdg_windows.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2017, OpenPeeDeeP. All rights reserved. 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 xdg 6 | 7 | import "os" 8 | 9 | func (o *osDefaulter) defaultDataHome() string { 10 | return os.Getenv("APPDATA") 11 | } 12 | 13 | func (o *osDefaulter) defaultDataDirs() []string { 14 | return []string{os.Getenv("PROGRAMDATA")} 15 | } 16 | 17 | func (o *osDefaulter) defaultConfigHome() string { 18 | return os.Getenv("APPDATA") 19 | } 20 | 21 | func (o *osDefaulter) defaultConfigDirs() []string { 22 | return []string{os.Getenv("PROGRAMDATA")} 23 | } 24 | 25 | func (o *osDefaulter) defaultCacheHome() string { 26 | return os.Getenv("LOCALAPPDATA") 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/boz/go-throttle/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.5 4 | - 1.6 5 | - 1.7 6 | - tip 7 | -------------------------------------------------------------------------------- /vendor/github.com/boz/go-throttle/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | go test 3 | -------------------------------------------------------------------------------- /vendor/github.com/cloudfoundry/jibber_jabber/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.2 4 | before_install: 5 | - go get github.com/onsi/ginkgo/... 6 | - go get github.com/onsi/gomega/... 7 | - go install github.com/onsi/ginkgo/ginkgo 8 | script: PATH=$PATH:$HOME/gopath/bin ginkgo -r . 9 | branches: 10 | only: 11 | - master 12 | -------------------------------------------------------------------------------- /vendor/github.com/cloudfoundry/jibber_jabber/jibber_jabber.go: -------------------------------------------------------------------------------- 1 | package jibber_jabber 2 | 3 | import ( 4 | "strings" 5 | ) 6 | 7 | const ( 8 | COULD_NOT_DETECT_PACKAGE_ERROR_MESSAGE = "Could not detect Language" 9 | ) 10 | 11 | func splitLocale(locale string) (string, string) { 12 | formattedLocale := strings.Split(locale, ".")[0] 13 | formattedLocale = strings.Replace(formattedLocale, "-", "_", -1) 14 | 15 | pieces := strings.Split(formattedLocale, "_") 16 | language := pieces[0] 17 | territory := "" 18 | if len(pieces) > 1 { 19 | territory = strings.Split(formattedLocale, "_")[1] 20 | } 21 | return language, territory 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/log/.golangci.yml: -------------------------------------------------------------------------------- 1 | linters: 2 | enable: 3 | - exportloopref # Checks for pointers to enclosing loop variables 4 | - gofmt 5 | - goimports 6 | - gosec 7 | - ineffassign 8 | - misspell 9 | - nolintlint 10 | - revive 11 | - staticcheck 12 | - tenv # Detects using os.Setenv instead of t.Setenv since Go 1.17 13 | - unconvert 14 | - unused 15 | - vet 16 | - dupword # Checks for duplicate words in the source code 17 | disable: 18 | - errcheck 19 | 20 | run: 21 | timeout: 5m 22 | skip-dirs: 23 | - api 24 | - cluster 25 | - design 26 | - docs 27 | - docs/man 28 | - releases 29 | - reports 30 | - test # e2e scripts 31 | -------------------------------------------------------------------------------- /vendor/github.com/davecgh/go-spew/LICENSE: -------------------------------------------------------------------------------- 1 | ISC License 2 | 3 | Copyright (c) 2012-2016 Dave Collins 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /vendor/github.com/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/Makefile: -------------------------------------------------------------------------------- 1 | # Project packages. 2 | PACKAGES=$(shell go list ./...) 3 | 4 | # Flags passed to `go test` 5 | BUILDFLAGS ?= 6 | TESTFLAGS ?= 7 | 8 | .PHONY: all build test coverage 9 | .DEFAULT: all 10 | 11 | all: build 12 | 13 | build: ## no binaries to build, so just check compilation suceeds 14 | go build ${BUILDFLAGS} ./... 15 | 16 | test: ## run tests 17 | go test ${TESTFLAGS} ./... 18 | 19 | coverage: ## generate coverprofiles from the unit tests 20 | rm -f coverage.txt 21 | go test ${TESTFLAGS} -cover -coverprofile=cover.out ./... 22 | 23 | .PHONY: help 24 | help: 25 | @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m\033[0m\n"} /^[a-zA-Z_\/%-]+:.*?##/ { printf " \033[36m%-27s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) 26 | -------------------------------------------------------------------------------- /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/cli/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 | This product contains software (https://github.com/creack/pty) developed 7 | by Keith Rarick, licensed under the MIT License. 8 | 9 | The following is courtesy of our legal counsel: 10 | 11 | 12 | Use and transfer of Docker may be subject to certain restrictions by the 13 | United States and other governments. 14 | It is your responsibility to ensure that your use and/or transfer does not 15 | violate applicable laws. 16 | 17 | For more information, see https://www.bis.doc.gov 18 | 19 | See also https://www.apache.org/dev/crypto.html and/or seek legal counsel. 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/config/configfile/file_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | 3 | package configfile 4 | 5 | import ( 6 | "os" 7 | "syscall" 8 | ) 9 | 10 | // copyFilePermissions copies file ownership and permissions from "src" to "dst", 11 | // ignoring any error during the process. 12 | func copyFilePermissions(src, dst string) { 13 | var ( 14 | mode os.FileMode = 0o600 15 | uid, gid int 16 | ) 17 | 18 | fi, err := os.Stat(src) 19 | if err != nil { 20 | return 21 | } 22 | if fi.Mode().IsRegular() { 23 | mode = fi.Mode() 24 | } 25 | if err := os.Chmod(dst, mode); err != nil { 26 | return 27 | } 28 | 29 | uid = int(fi.Sys().(*syscall.Stat_t).Uid) 30 | gid = int(fi.Sys().(*syscall.Stat_t).Gid) 31 | 32 | if uid > 0 && gid > 0 { 33 | _ = os.Chown(dst, uid, gid) 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/config/configfile/file_windows.go: -------------------------------------------------------------------------------- 1 | package configfile 2 | 3 | func copyFilePermissions(src, dst string) { 4 | // TODO implement for Windows 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/config/credentials/credentials.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | import ( 4 | "github.com/docker/cli/cli/config/types" 5 | ) 6 | 7 | // Store is the interface that any credentials store must implement. 8 | type Store interface { 9 | // Erase removes credentials from the store for a given server. 10 | Erase(serverAddress string) error 11 | // Get retrieves credentials from the store for a given server. 12 | Get(serverAddress string) (types.AuthConfig, error) 13 | // GetAll retrieves all the credentials from the store. 14 | GetAll() (map[string]types.AuthConfig, error) 15 | // Store saves credentials in the store. 16 | Store(authConfig types.AuthConfig) error 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/config/credentials/default_store.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | import "os/exec" 4 | 5 | // DetectDefaultStore return the default credentials store for the platform if 6 | // no user-defined store is passed, and the store executable is available. 7 | func DetectDefaultStore(store string) string { 8 | if store != "" { 9 | // use user-defined 10 | return store 11 | } 12 | 13 | platformDefault := defaultCredentialsStore() 14 | if platformDefault == "" { 15 | return "" 16 | } 17 | 18 | if _, err := exec.LookPath(remoteCredentialsPrefix + platformDefault); err != nil { 19 | return "" 20 | } 21 | return platformDefault 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/config/credentials/default_store_darwin.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | func defaultCredentialsStore() string { 4 | return "osxkeychain" 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/config/credentials/default_store_linux.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | import ( 4 | "os/exec" 5 | ) 6 | 7 | func defaultCredentialsStore() string { 8 | if _, err := exec.LookPath("pass"); err == nil { 9 | return "pass" 10 | } 11 | 12 | return "secretservice" 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/config/credentials/default_store_unsupported.go: -------------------------------------------------------------------------------- 1 | //go:build !windows && !darwin && !linux 2 | 3 | package credentials 4 | 5 | func defaultCredentialsStore() string { 6 | return "" 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/config/credentials/default_store_windows.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | func defaultCredentialsStore() string { 4 | return "wincred" 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/connhelper/commandconn/pdeathsig_linux.go: -------------------------------------------------------------------------------- 1 | package commandconn 2 | 3 | import ( 4 | "os/exec" 5 | "syscall" 6 | ) 7 | 8 | func setPdeathsig(cmd *exec.Cmd) { 9 | cmd.SysProcAttr.Pdeathsig = syscall.SIGKILL 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/connhelper/commandconn/pdeathsig_nolinux.go: -------------------------------------------------------------------------------- 1 | //go:build !linux 2 | 3 | package commandconn 4 | 5 | import ( 6 | "os/exec" 7 | ) 8 | 9 | func setPdeathsig(*exec.Cmd) {} 10 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/connhelper/commandconn/session_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | 3 | package commandconn 4 | 5 | import ( 6 | "os/exec" 7 | ) 8 | 9 | func createSession(cmd *exec.Cmd) { 10 | // for supporting ssh connection helper with ProxyCommand 11 | // https://github.com/docker/cli/issues/1707 12 | cmd.SysProcAttr.Setsid = true 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/connhelper/commandconn/session_windows.go: -------------------------------------------------------------------------------- 1 | package commandconn 2 | 3 | import ( 4 | "os/exec" 5 | ) 6 | 7 | func createSession(cmd *exec.Cmd) { 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/context/docker/constants.go: -------------------------------------------------------------------------------- 1 | package docker 2 | 3 | const ( 4 | // DockerEndpoint is the name of the docker endpoint in a stored context 5 | DockerEndpoint = "docker" 6 | ) 7 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/context/endpoint.go: -------------------------------------------------------------------------------- 1 | package context 2 | 3 | // EndpointMetaBase contains fields we expect to be common for most context endpoints 4 | type EndpointMetaBase struct { 5 | Host string `json:",omitempty"` 6 | SkipTLSVerify bool 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/context/store/io_utils.go: -------------------------------------------------------------------------------- 1 | package store 2 | 3 | import ( 4 | "errors" 5 | "io" 6 | ) 7 | 8 | // LimitedReader is a fork of io.LimitedReader to override Read. 9 | type LimitedReader struct { 10 | R io.Reader 11 | N int64 // max bytes remaining 12 | } 13 | 14 | // Read is a fork of io.LimitedReader.Read that returns an error when limit exceeded. 15 | func (l *LimitedReader) Read(p []byte) (n int, err error) { 16 | if l.N < 0 { 17 | return 0, errors.New("read exceeds the defined limit") 18 | } 19 | if l.N == 0 { 20 | return 0, io.EOF 21 | } 22 | // have to cap N + 1 otherwise we won't hit limit err 23 | if int64(len(p)) > l.N+1 { 24 | p = p[0 : l.N+1] 25 | } 26 | n, err = l.R.Read(p) 27 | l.N -= int64(n) 28 | return n, err 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker-credential-helpers/credentials/helper.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | // Helper is the interface a credentials store helper must implement. 4 | type Helper interface { 5 | // Add appends credentials to the store. 6 | Add(*Credentials) error 7 | // Delete removes credentials from the store. 8 | Delete(serverURL string) error 9 | // Get retrieves credentials from the store. 10 | // It returns username and secret as strings. 11 | Get(serverURL string) (string, string, error) 12 | // List returns the stored serverURLs and their associated usernames. 13 | List() (map[string]string, error) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker-credential-helpers/credentials/version.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | var ( 4 | // Name is filled at linking time 5 | Name = "" 6 | 7 | // Package is filled at linking time 8 | Package = "github.com/docker/docker-credential-helpers" 9 | 10 | // Version holds the complete version number. Filled in at linking time. 11 | Version = "v0.0.0+unknown" 12 | 13 | // Revision is filled with the VCS (e.g. git) revision being used to build 14 | // the program at linking time. 15 | Revision = "" 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/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 | This product contains software (https://github.com/creack/pty) developed 7 | by Keith Rarick, licensed under the MIT License. 8 | 9 | The following is courtesy of our legal counsel: 10 | 11 | 12 | Use and transfer of Docker may be subject to certain restrictions by the 13 | United States and other governments. 14 | It is your responsibility to ensure that your use and/or transfer does not 15 | violate applicable laws. 16 | 17 | For more information, please see https://www.bis.doc.gov 18 | 19 | See also https://www.apache.org/dev/crypto.html and/or seek legal counsel. 20 | -------------------------------------------------------------------------------- /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/blkiodev/blkio.go: -------------------------------------------------------------------------------- 1 | package blkiodev // import "github.com/docker/docker/api/types/blkiodev" 2 | 3 | import "fmt" 4 | 5 | // WeightDevice is a structure that holds device:weight pair 6 | type WeightDevice struct { 7 | Path string 8 | Weight uint16 9 | } 10 | 11 | func (w *WeightDevice) String() string { 12 | return fmt.Sprintf("%s:%d", w.Path, w.Weight) 13 | } 14 | 15 | // ThrottleDevice is a structure that holds device:rate_per_second pair 16 | type ThrottleDevice struct { 17 | Path string 18 | Rate uint64 19 | } 20 | 21 | func (t *ThrottleDevice) String() string { 22 | return fmt.Sprintf("%s:%d", t.Path, t.Rate) 23 | } 24 | -------------------------------------------------------------------------------- /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/container_update.go: -------------------------------------------------------------------------------- 1 | package container // import "github.com/docker/docker/api/types/container" 2 | 3 | // ---------------------------------------------------------------------------- 4 | // Code generated by `swagger generate operation`. DO NOT EDIT. 5 | // 6 | // See hack/generate-swagger-api.sh 7 | // ---------------------------------------------------------------------------- 8 | 9 | // ContainerUpdateOKBody OK response to ContainerUpdate operation 10 | // swagger:model ContainerUpdateOKBody 11 | type ContainerUpdateOKBody struct { 12 | 13 | // warnings 14 | // Required: true 15 | Warnings []string `json:"Warnings"` 16 | } 17 | -------------------------------------------------------------------------------- /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/graph_driver_data.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 | // GraphDriverData Information about the storage driver used to store the container's and 7 | // image's filesystem. 8 | // 9 | // swagger:model GraphDriverData 10 | type GraphDriverData struct { 11 | 12 | // Low-level storage metadata, provided as key/value pairs. 13 | // 14 | // This information is driver-specific, and depends on the storage-driver 15 | // in use, and should be used for informational purposes only. 16 | // 17 | // Required: true 18 | Data map[string]string `json:"Data"` 19 | 20 | // Name of the storage driver. 21 | // Required: true 22 | Name string `json:"Name"` 23 | } 24 | -------------------------------------------------------------------------------- /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_device.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 | // PluginDevice plugin device 7 | // swagger:model PluginDevice 8 | type PluginDevice struct { 9 | 10 | // description 11 | // Required: true 12 | Description string `json:"Description"` 13 | 14 | // name 15 | // Required: true 16 | Name string `json:"Name"` 17 | 18 | // path 19 | // Required: true 20 | Path *string `json:"Path"` 21 | 22 | // settable 23 | // Required: true 24 | Settable []string `json:"Settable"` 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/plugin_env.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 | // PluginEnv plugin env 7 | // swagger:model PluginEnv 8 | type PluginEnv struct { 9 | 10 | // description 11 | // Required: true 12 | Description string `json:"Description"` 13 | 14 | // name 15 | // Required: true 16 | Name string `json:"Name"` 17 | 18 | // settable 19 | // Required: true 20 | Settable []string `json:"Settable"` 21 | 22 | // value 23 | // Required: true 24 | Value *string `json:"Value"` 25 | } 26 | -------------------------------------------------------------------------------- /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/port.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 | // Port An open port on a container 7 | // swagger:model Port 8 | type Port struct { 9 | 10 | // Host IP address that the container's port is mapped to 11 | IP string `json:"IP,omitempty"` 12 | 13 | // Port on the container 14 | // Required: true 15 | PrivatePort uint16 `json:"PrivatePort"` 16 | 17 | // Port exposed on the host 18 | PublicPort uint16 `json:"PublicPort,omitempty"` 19 | 20 | // type 21 | // Required: true 22 | Type string `json:"Type"` 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/registry/authenticate.go: -------------------------------------------------------------------------------- 1 | package registry // import "github.com/docker/docker/api/types/registry" 2 | 3 | // ---------------------------------------------------------------------------- 4 | // DO NOT EDIT THIS FILE 5 | // This file was generated by `swagger generate operation` 6 | // 7 | // See hack/generate-swagger-api.sh 8 | // ---------------------------------------------------------------------------- 9 | 10 | // AuthenticateOKBody authenticate o k body 11 | // swagger:model AuthenticateOKBody 12 | type AuthenticateOKBody struct { 13 | 14 | // An opaque token used to authenticate a user after a successful login 15 | // Required: true 16 | IdentityToken string `json:"IdentityToken"` 17 | 18 | // The status of the authentication 19 | // Required: true 20 | Status string `json:"Status"` 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_create_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 | // ServiceCreateResponse contains the information returned to a client on the 7 | // creation of a new service. 8 | // 9 | // swagger:model ServiceCreateResponse 10 | type ServiceCreateResponse struct { 11 | 12 | // The ID of the created service. 13 | ID string `json:"ID,omitempty"` 14 | 15 | // Optional warning message. 16 | // 17 | // FIXME(thaJeztah): this should have "omitempty" in the generated type. 18 | // 19 | Warnings []string `json:"Warnings"` 20 | } 21 | -------------------------------------------------------------------------------- /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/system/runtime.go: -------------------------------------------------------------------------------- 1 | package system 2 | 3 | // Runtime describes an OCI runtime 4 | type Runtime struct { 5 | // "Legacy" runtime configuration for runc-compatible runtimes. 6 | 7 | Path string `json:"path,omitempty"` 8 | Args []string `json:"runtimeArgs,omitempty"` 9 | 10 | // Shimv2 runtime configuration. Mutually exclusive with the legacy config above. 11 | 12 | Type string `json:"runtimeType,omitempty"` 13 | Options map[string]interface{} `json:"options,omitempty"` 14 | } 15 | 16 | // RuntimeWithStatus extends [Runtime] to hold [RuntimeStatus]. 17 | type RuntimeWithStatus struct { 18 | Runtime 19 | Status map[string]string `json:"status,omitempty"` 20 | } 21 | -------------------------------------------------------------------------------- /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/checkpoint_delete.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/checkpoint" 8 | ) 9 | 10 | // CheckpointDelete deletes the checkpoint with the given name from the given container 11 | func (cli *Client) CheckpointDelete(ctx context.Context, containerID string, options checkpoint.DeleteOptions) error { 12 | query := url.Values{} 13 | if options.CheckpointDir != "" { 14 | query.Set("dir", options.CheckpointDir) 15 | } 16 | 17 | resp, err := cli.delete(ctx, "/containers/"+containerID+"/checkpoints/"+options.CheckpointID, query, nil) 18 | ensureReaderClosed(resp) 19 | return err 20 | } 21 | -------------------------------------------------------------------------------- /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_create.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | 7 | "github.com/docker/docker/api/types" 8 | "github.com/docker/docker/api/types/swarm" 9 | ) 10 | 11 | // ConfigCreate creates a new config. 12 | func (cli *Client) ConfigCreate(ctx context.Context, config swarm.ConfigSpec) (types.ConfigCreateResponse, error) { 13 | var response types.ConfigCreateResponse 14 | if err := cli.NewVersionError(ctx, "1.30", "config create"); err != nil { 15 | return response, err 16 | } 17 | resp, err := cli.post(ctx, "/configs/create", nil, config, nil) 18 | defer ensureReaderClosed(resp) 19 | if err != nil { 20 | return response, err 21 | } 22 | 23 | err = json.NewDecoder(resp.body).Decode(&response) 24 | return response, err 25 | } 26 | -------------------------------------------------------------------------------- /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/config_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 | // ConfigUpdate attempts to update a config 11 | func (cli *Client) ConfigUpdate(ctx context.Context, id string, version swarm.Version, config swarm.ConfigSpec) error { 12 | if err := cli.NewVersionError(ctx, "1.30", "config update"); err != nil { 13 | return err 14 | } 15 | query := url.Values{} 16 | query.Set("version", version.String()) 17 | resp, err := cli.post(ctx, "/configs/"+id+"/update", query, config, nil) 18 | ensureReaderClosed(resp) 19 | return err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/container_diff.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | "net/url" 7 | 8 | "github.com/docker/docker/api/types/container" 9 | ) 10 | 11 | // ContainerDiff shows differences in a container filesystem since it was started. 12 | func (cli *Client) ContainerDiff(ctx context.Context, containerID string) ([]container.FilesystemChange, error) { 13 | var changes []container.FilesystemChange 14 | 15 | serverResp, err := cli.get(ctx, "/containers/"+containerID+"/changes", url.Values{}, nil) 16 | defer ensureReaderClosed(serverResp) 17 | if err != nil { 18 | return changes, err 19 | } 20 | 21 | err = json.NewDecoder(serverResp.body).Decode(&changes) 22 | return changes, err 23 | } 24 | -------------------------------------------------------------------------------- /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_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/container" 8 | ) 9 | 10 | // ContainerRemove kills and removes a container from the docker host. 11 | func (cli *Client) ContainerRemove(ctx context.Context, containerID string, options container.RemoveOptions) error { 12 | query := url.Values{} 13 | if options.RemoveVolumes { 14 | query.Set("v", "1") 15 | } 16 | if options.RemoveLinks { 17 | query.Set("link", "1") 18 | } 19 | 20 | if options.Force { 21 | query.Set("force", "1") 22 | } 23 | 24 | resp, err := cli.delete(ctx, "/containers/"+containerID, query, nil) 25 | defer ensureReaderClosed(resp) 26 | return err 27 | } 28 | -------------------------------------------------------------------------------- /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_start.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/container" 8 | ) 9 | 10 | // ContainerStart sends a request to the docker daemon to start a container. 11 | func (cli *Client) ContainerStart(ctx context.Context, containerID string, options container.StartOptions) error { 12 | query := url.Values{} 13 | if len(options.CheckpointID) != 0 { 14 | query.Set("checkpoint", options.CheckpointID) 15 | } 16 | if len(options.CheckpointDir) != 0 { 17 | query.Set("checkpoint-dir", options.CheckpointDir) 18 | } 19 | 20 | resp, err := cli.post(ctx, "/containers/"+containerID+"/start", query, nil, nil) 21 | ensureReaderClosed(resp) 22 | return err 23 | } 24 | -------------------------------------------------------------------------------- /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/container_update.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | 7 | "github.com/docker/docker/api/types/container" 8 | ) 9 | 10 | // ContainerUpdate updates the resources of a container. 11 | func (cli *Client) ContainerUpdate(ctx context.Context, containerID string, updateConfig container.UpdateConfig) (container.ContainerUpdateOKBody, error) { 12 | var response container.ContainerUpdateOKBody 13 | serverResp, err := cli.post(ctx, "/containers/"+containerID+"/update", nil, updateConfig, nil) 14 | defer ensureReaderClosed(serverResp) 15 | if err != nil { 16 | return response, err 17 | } 18 | 19 | err = json.NewDecoder(serverResp.body).Decode(&response) 20 | return response, err 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/image_history.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | "net/url" 7 | 8 | "github.com/docker/docker/api/types/image" 9 | ) 10 | 11 | // ImageHistory returns the changes in an image in history format. 12 | func (cli *Client) ImageHistory(ctx context.Context, imageID string) ([]image.HistoryResponseItem, error) { 13 | var history []image.HistoryResponseItem 14 | serverResp, err := cli.get(ctx, "/images/"+imageID+"/history", url.Values{}, nil) 15 | defer ensureReaderClosed(serverResp) 16 | if err != nil { 17 | return history, err 18 | } 19 | 20 | err = json.NewDecoder(serverResp.body).Decode(&history) 21 | return history, err 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/image_save.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "io" 6 | "net/url" 7 | ) 8 | 9 | // ImageSave retrieves one or more images from the docker host as an io.ReadCloser. 10 | // It's up to the caller to store the images and close the stream. 11 | func (cli *Client) ImageSave(ctx context.Context, imageIDs []string) (io.ReadCloser, error) { 12 | query := url.Values{ 13 | "names": imageIDs, 14 | } 15 | 16 | resp, err := cli.get(ctx, "/images/get", query, nil) 17 | if err != nil { 18 | return nil, err 19 | } 20 | return resp.body, nil 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/info.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | "fmt" 7 | "net/url" 8 | 9 | "github.com/docker/docker/api/types/system" 10 | ) 11 | 12 | // Info returns information about the docker server. 13 | func (cli *Client) Info(ctx context.Context) (system.Info, error) { 14 | var info system.Info 15 | serverResp, err := cli.get(ctx, "/info", url.Values{}, nil) 16 | defer ensureReaderClosed(serverResp) 17 | if err != nil { 18 | return info, err 19 | } 20 | 21 | if err := json.NewDecoder(serverResp.body).Decode(&info); err != nil { 22 | return info, fmt.Errorf("Error reading remote info: %v", err) 23 | } 24 | 25 | return info, nil 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/interface_experimental.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 | type apiClientExperimental interface { 10 | CheckpointAPIClient 11 | } 12 | 13 | // CheckpointAPIClient defines API client methods for the checkpoints 14 | type CheckpointAPIClient interface { 15 | CheckpointCreate(ctx context.Context, container string, options checkpoint.CreateOptions) error 16 | CheckpointDelete(ctx context.Context, container string, options checkpoint.DeleteOptions) error 17 | CheckpointList(ctx context.Context, container string, options checkpoint.ListOptions) ([]checkpoint.Summary, error) 18 | } 19 | -------------------------------------------------------------------------------- /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/login.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | "net/url" 7 | 8 | "github.com/docker/docker/api/types/registry" 9 | ) 10 | 11 | // RegistryLogin authenticates the docker server with a given docker registry. 12 | // It returns unauthorizedError when the authentication fails. 13 | func (cli *Client) RegistryLogin(ctx context.Context, auth registry.AuthConfig) (registry.AuthenticateOKBody, error) { 14 | resp, err := cli.post(ctx, "/auth", url.Values{}, auth, nil) 15 | defer ensureReaderClosed(resp) 16 | 17 | if err != nil { 18 | return registry.AuthenticateOKBody{}, err 19 | } 20 | 21 | var response registry.AuthenticateOKBody 22 | err = json.NewDecoder(resp.body).Decode(&response) 23 | return response, err 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/network_connect.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/docker/docker/api/types/network" 7 | ) 8 | 9 | // NetworkConnect connects a container to an existent network in the docker host. 10 | func (cli *Client) NetworkConnect(ctx context.Context, networkID, containerID string, config *network.EndpointSettings) error { 11 | nc := network.ConnectOptions{ 12 | Container: containerID, 13 | EndpointConfig: config, 14 | } 15 | resp, err := cli.post(ctx, "/networks/"+networkID+"/connect", nil, nc, nil) 16 | ensureReaderClosed(resp) 17 | return err 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/network_disconnect.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/docker/docker/api/types/network" 7 | ) 8 | 9 | // NetworkDisconnect disconnects a container from an existent network in the docker host. 10 | func (cli *Client) NetworkDisconnect(ctx context.Context, networkID, containerID string, force bool) error { 11 | nd := network.DisconnectOptions{ 12 | Container: containerID, 13 | Force: force, 14 | } 15 | resp, err := cli.post(ctx, "/networks/"+networkID+"/disconnect", nil, nd, nil) 16 | ensureReaderClosed(resp) 17 | return err 18 | } 19 | -------------------------------------------------------------------------------- /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_create.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "io" 6 | "net/http" 7 | "net/url" 8 | 9 | "github.com/docker/docker/api/types" 10 | ) 11 | 12 | // PluginCreate creates a plugin 13 | func (cli *Client) PluginCreate(ctx context.Context, createContext io.Reader, createOptions types.PluginCreateOptions) error { 14 | headers := http.Header(make(map[string][]string)) 15 | headers.Set("Content-Type", "application/x-tar") 16 | 17 | query := url.Values{} 18 | query.Set("name", createOptions.RepoName) 19 | 20 | resp, err := cli.postRaw(ctx, "/plugins/create", query, createContext, headers) 21 | ensureReaderClosed(resp) 22 | return err 23 | } 24 | -------------------------------------------------------------------------------- /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_create.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | 7 | "github.com/docker/docker/api/types" 8 | "github.com/docker/docker/api/types/swarm" 9 | ) 10 | 11 | // SecretCreate creates a new secret. 12 | func (cli *Client) SecretCreate(ctx context.Context, secret swarm.SecretSpec) (types.SecretCreateResponse, error) { 13 | var response types.SecretCreateResponse 14 | if err := cli.NewVersionError(ctx, "1.25", "secret create"); err != nil { 15 | return response, err 16 | } 17 | resp, err := cli.post(ctx, "/secrets/create", nil, secret, nil) 18 | defer ensureReaderClosed(resp) 19 | if err != nil { 20 | return response, err 21 | } 22 | 23 | err = json.NewDecoder(resp.body).Decode(&response) 24 | return response, err 25 | } 26 | -------------------------------------------------------------------------------- /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/secret_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 | // SecretUpdate attempts to update a secret. 11 | func (cli *Client) SecretUpdate(ctx context.Context, id string, version swarm.Version, secret swarm.SecretSpec) error { 12 | if err := cli.NewVersionError(ctx, "1.25", "secret update"); err != nil { 13 | return err 14 | } 15 | query := url.Values{} 16 | query.Set("version", version.String()) 17 | resp, err := cli.post(ctx, "/secrets/"+id+"/update", query, secret, nil) 18 | ensureReaderClosed(resp) 19 | return err 20 | } 21 | -------------------------------------------------------------------------------- /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_get_unlock_key.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | 7 | "github.com/docker/docker/api/types" 8 | ) 9 | 10 | // SwarmGetUnlockKey retrieves the swarm's unlock key. 11 | func (cli *Client) SwarmGetUnlockKey(ctx context.Context) (types.SwarmUnlockKeyResponse, error) { 12 | serverResp, err := cli.get(ctx, "/swarm/unlockkey", nil, nil) 13 | defer ensureReaderClosed(serverResp) 14 | if err != nil { 15 | return types.SwarmUnlockKeyResponse{}, err 16 | } 17 | 18 | var response types.SwarmUnlockKeyResponse 19 | err = json.NewDecoder(serverResp.body).Decode(&response) 20 | return response, err 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/swarm_init.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | 7 | "github.com/docker/docker/api/types/swarm" 8 | ) 9 | 10 | // SwarmInit initializes the swarm. 11 | func (cli *Client) SwarmInit(ctx context.Context, req swarm.InitRequest) (string, error) { 12 | serverResp, err := cli.post(ctx, "/swarm/init", nil, req, nil) 13 | defer ensureReaderClosed(serverResp) 14 | if err != nil { 15 | return "", err 16 | } 17 | 18 | var response string 19 | err = json.NewDecoder(serverResp.body).Decode(&response) 20 | return response, err 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/swarm_inspect.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | 7 | "github.com/docker/docker/api/types/swarm" 8 | ) 9 | 10 | // SwarmInspect inspects the swarm. 11 | func (cli *Client) SwarmInspect(ctx context.Context) (swarm.Swarm, error) { 12 | serverResp, err := cli.get(ctx, "/swarm", nil, nil) 13 | defer ensureReaderClosed(serverResp) 14 | if err != nil { 15 | return swarm.Swarm{}, err 16 | } 17 | 18 | var response swarm.Swarm 19 | err = json.NewDecoder(serverResp.body).Decode(&response) 20 | return response, err 21 | } 22 | -------------------------------------------------------------------------------- /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/client/swarm_update.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/swarm" 9 | ) 10 | 11 | // SwarmUpdate updates the swarm. 12 | func (cli *Client) SwarmUpdate(ctx context.Context, version swarm.Version, swarm swarm.Spec, flags swarm.UpdateFlags) error { 13 | query := url.Values{} 14 | query.Set("version", version.String()) 15 | query.Set("rotateWorkerToken", strconv.FormatBool(flags.RotateWorkerToken)) 16 | query.Set("rotateManagerToken", strconv.FormatBool(flags.RotateManagerToken)) 17 | query.Set("rotateManagerUnlockKey", strconv.FormatBool(flags.RotateManagerUnlockKey)) 18 | resp, err := cli.post(ctx, "/swarm/update", query, swarm, nil) 19 | ensureReaderClosed(resp) 20 | return err 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/version.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | 7 | "github.com/docker/docker/api/types" 8 | ) 9 | 10 | // ServerVersion returns information of the docker client and server host. 11 | func (cli *Client) ServerVersion(ctx context.Context) (types.Version, error) { 12 | resp, err := cli.get(ctx, "/version", nil, nil) 13 | defer ensureReaderClosed(resp) 14 | if err != nil { 15 | return types.Version{}, err 16 | } 17 | 18 | var server types.Version 19 | err = json.NewDecoder(resp.body).Decode(&server) 20 | return server, err 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/volume_create.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | 7 | "github.com/docker/docker/api/types/volume" 8 | ) 9 | 10 | // VolumeCreate creates a volume in the docker host. 11 | func (cli *Client) VolumeCreate(ctx context.Context, options volume.CreateOptions) (volume.Volume, error) { 12 | var vol volume.Volume 13 | resp, err := cli.post(ctx, "/volumes/create", nil, options, nil) 14 | defer ensureReaderClosed(resp) 15 | if err != nil { 16 | return vol, err 17 | } 18 | err = json.NewDecoder(resp.body).Decode(&vol) 19 | return vol, err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/volume_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 | "github.com/docker/docker/api/types/volume" 9 | ) 10 | 11 | // VolumeUpdate updates a volume. This only works for Cluster Volumes, and 12 | // only some fields can be updated. 13 | func (cli *Client) VolumeUpdate(ctx context.Context, volumeID string, version swarm.Version, options volume.UpdateOptions) error { 14 | if err := cli.NewVersionError(ctx, "1.42", "volume update"); err != nil { 15 | return err 16 | } 17 | 18 | query := url.Values{} 19 | query.Set("version", version.String()) 20 | 21 | resp, err := cli.put(ctx, "/volumes/"+volumeID, query, options, nil) 22 | ensureReaderClosed(resp) 23 | return err 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/errdefs/doc.go: -------------------------------------------------------------------------------- 1 | // Package errdefs defines a set of error interfaces that packages should use for communicating classes of errors. 2 | // Errors that cross the package boundary should implement one (and only one) of these interfaces. 3 | // 4 | // Packages should not reference these interfaces directly, only implement them. 5 | // To check if a particular error implements one of these interfaces, there are helper 6 | // functions provided (e.g. `Is`) which can be used rather than asserting the interfaces directly. 7 | // If you must assert on these interfaces, be sure to check the causal chain (`err.Cause()`). 8 | package errdefs // import "github.com/docker/docker/errdefs" 9 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/sockets/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesseduffield/lazydocker/bedde4a03791e678c510b98d0de8b0c2d23d8efa/vendor/github.com/docker/go-connections/sockets/README.md -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/sockets/sockets_windows.go: -------------------------------------------------------------------------------- 1 | package sockets 2 | 3 | import ( 4 | "context" 5 | "net" 6 | "net/http" 7 | "time" 8 | 9 | "github.com/Microsoft/go-winio" 10 | ) 11 | 12 | func configureUnixTransport(tr *http.Transport, proto, addr string) error { 13 | return ErrProtocolNotAvailable 14 | } 15 | 16 | func configureNpipeTransport(tr *http.Transport, proto, addr string) error { 17 | // No need for compression in local communications. 18 | tr.DisableCompression = true 19 | tr.DialContext = func(ctx context.Context, _, _ string) (net.Conn, error) { 20 | return winio.DialPipeContext(ctx, addr) 21 | } 22 | return nil 23 | } 24 | 25 | // DialPipe connects to a Windows named pipe. 26 | func DialPipe(addr string, timeout time.Duration) (net.Conn, error) { 27 | return winio.DialPipe(addr, &timeout) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/sockets/tcp_socket.go: -------------------------------------------------------------------------------- 1 | // Package sockets provides helper functions to create and configure Unix or TCP sockets. 2 | package sockets 3 | 4 | import ( 5 | "crypto/tls" 6 | "net" 7 | ) 8 | 9 | // NewTCPSocket creates a TCP socket listener with the specified address and 10 | // the specified tls configuration. If TLSConfig is set, will encapsulate the 11 | // TCP listener inside a TLS one. 12 | func NewTCPSocket(addr string, tlsConfig *tls.Config) (net.Listener, error) { 13 | l, err := net.Listen("tcp", addr) 14 | if err != nil { 15 | return nil, err 16 | } 17 | if tlsConfig != nil { 18 | tlsConfig.NextProtos = []string{"http/1.1"} 19 | l = tls.NewListener(l, tlsConfig) 20 | } 21 | return l, nil 22 | } 23 | -------------------------------------------------------------------------------- /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/jesseduffield/lazydocker/bedde4a03791e678c510b98d0de8b0c2d23d8efa/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/fvbommel/sortorder/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | # Folders 6 | _obj 7 | _test 8 | # Architecture specific extensions/prefixes 9 | *.[568vq] 10 | [568vq].out 11 | *.cgo1.go 12 | *.cgo2.c 13 | _cgo_defun.c 14 | _cgo_gotypes.go 15 | _cgo_export.* 16 | _testmain.go 17 | *.exe 18 | *.test 19 | *.prof 20 | -------------------------------------------------------------------------------- /vendor/github.com/fvbommel/sortorder/README.md: -------------------------------------------------------------------------------- 1 | # sortorder [![PkgGoDev](https://pkg.go.dev/badge/github.com/fvbommel/sortorder)](https://pkg.go.dev/github.com/fvbommel/sortorder) 2 | 3 | import "github.com/fvbommel/sortorder" 4 | 5 | Sort orders and comparison functions. 6 | 7 | Case-insensitive sort orders are in the `casefolded` sub-package 8 | because it pulls in the Unicode tables in the standard library, 9 | which can add significantly to the size of binaries. 10 | -------------------------------------------------------------------------------- /vendor/github.com/fvbommel/sortorder/doc.go: -------------------------------------------------------------------------------- 1 | // Package sortorder implements sort orders and comparison functions. 2 | // 3 | // Currently, it only implements so-called "natural order", where integers 4 | // embedded in strings are compared by value. 5 | package sortorder // import "github.com/fvbommel/sortorder" 6 | -------------------------------------------------------------------------------- /vendor/github.com/gdamore/encoding/.appveyor.yml: -------------------------------------------------------------------------------- 1 | version: 1.0.{build} 2 | clone_folder: c:\gopath\src\github.com\gdamore\encoding 3 | environment: 4 | GOPATH: c:\gopath 5 | build_script: 6 | - go version 7 | - go env 8 | - SET PATH=%LOCALAPPDATA%\atom\bin;%GOPATH%\bin;%PATH% 9 | - go get -t ./... 10 | - go build 11 | - go install ./... 12 | test_script: 13 | - go test ./... 14 | -------------------------------------------------------------------------------- /vendor/github.com/gdamore/encoding/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | We take security very seriously in mangos, since you may be using it in 4 | Internet-facing applications. 5 | 6 | ## Reporting a Vulnerability 7 | 8 | To report a vulnerability, please contact us on our discord. 9 | You may also send an email to garrett@damore.org, or info@staysail.tech. 10 | 11 | We will keep the reporter updated on any status updates on a regular basis, 12 | and will respond within two business days for any reported security issue. 13 | -------------------------------------------------------------------------------- /vendor/github.com/gdamore/encoding/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Garrett D'Amore 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use file except in compliance with the License. 5 | // You may obtain a copy of the license at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | // Package encoding provides a few of the encoding structures that are 16 | // missing from the Go x/text/encoding tree. 17 | package encoding 18 | -------------------------------------------------------------------------------- /vendor/github.com/gdamore/tcell/v2/.appveyor.yml: -------------------------------------------------------------------------------- 1 | version: 1.0.{build} 2 | clone_folder: c:\gopath\src\github.com\gdamore\tcell 3 | environment: 4 | GOPATH: c:\gopath 5 | build_script: 6 | - go version 7 | - go env 8 | - SET PATH=%LOCALAPPDATA%\atom\bin;%GOPATH%\bin;%PATH% 9 | - go get -t ./... 10 | - go build 11 | - go install ./... 12 | test_script: 13 | - go test ./... 14 | -------------------------------------------------------------------------------- /vendor/github.com/gdamore/tcell/v2/.gitignore: -------------------------------------------------------------------------------- 1 | coverage.txt 2 | -------------------------------------------------------------------------------- /vendor/github.com/gdamore/tcell/v2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.15.x 5 | - master 6 | 7 | arch: 8 | - amd64 9 | - ppc64le 10 | 11 | before_install: 12 | - go get -t -v ./... 13 | 14 | script: 15 | - go test -race -coverprofile=coverage.txt -covermode=atomic 16 | 17 | after_success: 18 | - bash <(curl -s https://codecov.io/bash) 19 | -------------------------------------------------------------------------------- /vendor/github.com/gdamore/tcell/v2/AUTHORS: -------------------------------------------------------------------------------- 1 | Garrett D'Amore 2 | Zachary Yedidia 3 | Junegunn Choi 4 | Staysail Systems, Inc. 5 | -------------------------------------------------------------------------------- /vendor/github.com/gdamore/tcell/v2/SECURITY.md: -------------------------------------------------------------------------------- 1 | # SECURITY 2 | 3 | It's somewhat unlikely that tcell is in a security sensitive path, 4 | but we do take security seriously. 5 | 6 | ## Vulnerabilityu Response 7 | 8 | If you report a vulnerability, we will respond within 2 business days. 9 | 10 | ## Report a Vulnerability 11 | 12 | If you wish to report a vulnerability found in tcell, simply send a message 13 | to garrett@damore.org. You may also reach us on our discord channel - 14 | https://discord.gg/urTTxDN - a private message to `gdamore` on that channel 15 | may be submitted instead of mail. 16 | -------------------------------------------------------------------------------- /vendor/github.com/gdamore/tcell/v2/charset_stub.go: -------------------------------------------------------------------------------- 1 | //go:build plan9 || nacl 2 | // +build plan9 nacl 3 | 4 | // Copyright 2015 The TCell Authors 5 | // 6 | // Licensed under the Apache License, Version 2.0 (the "License"); 7 | // you may not use file except in compliance with the License. 8 | // You may obtain a copy of the license at 9 | // 10 | // http://www.apache.org/licenses/LICENSE-2.0 11 | // 12 | // Unless required by applicable law or agreed to in writing, software 13 | // distributed under the License is distributed on an "AS IS" BASIS, 14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | // See the License for the specific language governing permissions and 16 | // limitations under the License. 17 | 18 | package tcell 19 | 20 | func getCharset() string { 21 | return "" 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/gdamore/tcell/v2/charset_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | // Copyright 2015 The TCell Authors 5 | // 6 | // Licensed under the Apache License, Version 2.0 (the "License"); 7 | // you may not use file except in compliance with the License. 8 | // You may obtain a copy of the license at 9 | // 10 | // http://www.apache.org/licenses/LICENSE-2.0 11 | // 12 | // Unless required by applicable law or agreed to in writing, software 13 | // distributed under the License is distributed on an "AS IS" BASIS, 14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | // See the License for the specific language governing permissions and 16 | // limitations under the License. 17 | 18 | package tcell 19 | 20 | func getCharset() string { 21 | return "UTF-16" 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/gdamore/tcell/v2/terminfo/.gitignore: -------------------------------------------------------------------------------- 1 | mkinfo 2 | -------------------------------------------------------------------------------- /vendor/github.com/gdamore/tcell/v2/terminfo/TERMINALS.md: -------------------------------------------------------------------------------- 1 | TERMINALS 2 | ========= 3 | 4 | The best way to populate terminals on Debian is to install ncurses, 5 | ncurses-term, screen, tmux, rxvt-unicode, and dvtm. This populates the 6 | the terminfo database so that we can have a reasonable set of starting 7 | terminals. 8 | -------------------------------------------------------------------------------- /vendor/github.com/gdamore/tcell/v2/terminfo/gen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | while read line 3 | do 4 | case "$line" in 5 | *'|'*) 6 | alias=${line#*|} 7 | line=${line%|*} 8 | ;; 9 | *) 10 | alias=${line%%,*} 11 | ;; 12 | esac 13 | 14 | alias=${alias//-/_} 15 | direc=${alias:0:1} 16 | 17 | mkdir -p ${direc}/${alias} 18 | go run mkinfo.go -P ${alias} -go ${direc}/${alias}/term.go ${line//,/ } 19 | done < models.txt 20 | -------------------------------------------------------------------------------- /vendor/github.com/gdamore/tcell/v2/terminfo/models.txt: -------------------------------------------------------------------------------- 1 | aixterm 2 | alacritty 3 | ansi 4 | beterm 5 | cygwin 6 | dtterm 7 | eterm,eterm-color|emacs 8 | gnome,gnome-256color 9 | hpterm 10 | konsole,konsole-256color 11 | kterm 12 | linux 13 | pcansi 14 | rxvt,rxvt-256color,rxvt-88color,rxvt-unicode,rxvt-unicode-256color 15 | screen,screen-256color 16 | st,st-256color|simpleterm 17 | tmux 18 | vt52 19 | vt100 20 | vt102 21 | vt220 22 | vt320 23 | vt400 24 | vt420 25 | wy50 26 | wy60 27 | wy99-ansi,wy99a-ansi 28 | xfce 29 | xterm,xterm-88color,xterm-256color 30 | xterm-kitty 31 | -------------------------------------------------------------------------------- /vendor/github.com/go-errors/errors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - "1.8.x" 5 | - "1.11.x" 6 | - "1.16.x" 7 | - "1.21.x" 8 | -------------------------------------------------------------------------------- /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/logr/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | Logr is open to pull-requests, provided they fit within the intended scope of 4 | the project. Specifically, this library aims to be VERY small and minimalist, 5 | with no external dependencies. 6 | 7 | ## Compatibility 8 | 9 | This project intends to follow [semantic versioning](http://semver.org) and 10 | is very strict about compatibility. Any proposed changes MUST follow those 11 | rules. 12 | 13 | ## Performance 14 | 15 | As a logging library, logr must be as light-weight as possible. Any proposed 16 | code change must include results of running the [benchmark](./benchmark) 17 | before and after the change. 18 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/logr/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | If you have discovered a security vulnerability in this project, please report it 4 | privately. **Do not disclose it as a public issue.** This gives us time to work with you 5 | to fix the issue before public exposure, reducing the chance that the exploit will be 6 | used before a patch is released. 7 | 8 | You may submit the report in the following ways: 9 | 10 | - send an email to go-logr-security@googlegroups.com 11 | - send us a [private vulnerability report](https://github.com/go-logr/logr/security/advisories/new) 12 | 13 | Please provide the following information in your report: 14 | 15 | - A description of the vulnerability and its impact 16 | - How to reproduce the issue 17 | 18 | We ask that you give us 90 days to work on a fix before public exposure. 19 | -------------------------------------------------------------------------------- /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/goccy/go-yaml/.codecov.yml: -------------------------------------------------------------------------------- 1 | codecov: 2 | require_ci_to_pass: yes 3 | 4 | coverage: 5 | precision: 2 6 | round: down 7 | range: "70...100" 8 | 9 | status: 10 | project: 11 | default: 12 | target: 75% 13 | threshold: 2% 14 | patch: off 15 | changes: no 16 | 17 | parsers: 18 | gcov: 19 | branch_detection: 20 | conditional: yes 21 | loop: yes 22 | method: no 23 | macro: no 24 | 25 | comment: 26 | layout: "header,diff" 27 | behavior: default 28 | require_changes: no 29 | 30 | ignore: 31 | - ast 32 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-yaml/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | test: 3 | go test -v -race ./... 4 | 5 | .PHONY: simple-test 6 | simple-test: 7 | go test -v ./... 8 | 9 | .PHONY: cover 10 | cover: 11 | go test -coverprofile=cover.out ./... 12 | 13 | .PHONY: cover-html 14 | cover-html: cover 15 | go tool cover -html=cover.out 16 | 17 | .PHONY: ycat/build 18 | ycat/build: 19 | go build -o ycat ./cmd/ycat 20 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-yaml/lexer/lexer.go: -------------------------------------------------------------------------------- 1 | package lexer 2 | 3 | import ( 4 | "io" 5 | 6 | "github.com/goccy/go-yaml/scanner" 7 | "github.com/goccy/go-yaml/token" 8 | ) 9 | 10 | // Tokenize split to token instances from string 11 | func Tokenize(src string) token.Tokens { 12 | var s scanner.Scanner 13 | s.Init(src) 14 | var tokens token.Tokens 15 | for { 16 | subTokens, err := s.Scan() 17 | if err == io.EOF { 18 | break 19 | } 20 | tokens.Add(subTokens...) 21 | } 22 | return tokens 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-yaml/validate.go: -------------------------------------------------------------------------------- 1 | package yaml 2 | 3 | // StructValidator need to implement Struct method only 4 | // ( see https://pkg.go.dev/github.com/go-playground/validator/v10#Validate.Struct ) 5 | type StructValidator interface { 6 | Struct(interface{}) error 7 | } 8 | 9 | // FieldError need to implement StructField method only 10 | // ( see https://pkg.go.dev/github.com/go-playground/validator/v10#FieldError ) 11 | type FieldError interface { 12 | StructField() string 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of GoGo authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS file, which 3 | # lists people. For example, employees are listed in CONTRIBUTORS, 4 | # but not in AUTHORS, because the employer holds the copyright. 5 | 6 | # Names should be added to this file as one of 7 | # Organization's name 8 | # Individual's name 9 | # Individual's name 10 | 11 | # Please keep the list sorted. 12 | 13 | Sendgrid, Inc 14 | Vastech SA (PTY) LTD 15 | Walter Schulze 16 | -------------------------------------------------------------------------------- /vendor/github.com/gookit/color/.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | *.swp 3 | .idea 4 | *.patch 5 | ### Go template 6 | # Binaries for programs and plugins 7 | *.exe 8 | *.exe~ 9 | *.dll 10 | *.so 11 | *.dylib 12 | 13 | # Test binary, build with `go test -c` 14 | *.test 15 | 16 | # Output of the go coverage tool, specifically when used with LiteIDE 17 | *.out 18 | .DS_Store 19 | app 20 | demo 21 | -------------------------------------------------------------------------------- /vendor/github.com/imdario/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 = "github.com/imdario/mergo" -------------------------------------------------------------------------------- /vendor/github.com/imdario/mergo/.gitignore: -------------------------------------------------------------------------------- 1 | #### joe made this: http://goel.io/joe 2 | 3 | #### go #### 4 | # Binaries for programs and plugins 5 | *.exe 6 | *.dll 7 | *.so 8 | *.dylib 9 | 10 | # Test binary, build with `go test -c` 11 | *.test 12 | 13 | # Output of the go coverage tool, specifically when used with LiteIDE 14 | *.out 15 | 16 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 17 | .glide/ 18 | 19 | #### vim #### 20 | # Swap 21 | [._]*.s[a-v][a-z] 22 | [._]*.sw[a-p] 23 | [._]s[a-v][a-z] 24 | [._]sw[a-p] 25 | 26 | # Session 27 | Session.vim 28 | 29 | # Temporary 30 | .netrwhist 31 | *~ 32 | # Auto-generated tag files 33 | tags 34 | -------------------------------------------------------------------------------- /vendor/github.com/imdario/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/github.com/imdario/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/github.com/integrii/flaggy/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.dll 4 | *.so 5 | *.dylib 6 | 7 | # Test binary, build with `go test -c` 8 | *.test 9 | 10 | # Output of the go coverage tool, specifically when used with LiteIDE 11 | *.out 12 | 13 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 14 | .glide/ 15 | 16 | .idea/ 17 | -------------------------------------------------------------------------------- /vendor/github.com/integrii/flaggy/.travis.yml: -------------------------------------------------------------------------------- 1 | { 2 | "language": "go", 3 | "os": "linux", 4 | "group": "stable", 5 | "dist": "trusty", 6 | "script": "go get -v && go test -v" 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/integrii/flaggy/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jesseduffield/lazydocker/bedde4a03791e678c510b98d0de8b0c2d23d8efa/vendor/github.com/integrii/flaggy/logo.png -------------------------------------------------------------------------------- /vendor/github.com/integrii/flaggy/positionalValue.go: -------------------------------------------------------------------------------- 1 | package flaggy 2 | 3 | // PositionalValue represents a value which is determined by its position 4 | // relative to where a subcommand was detected. 5 | type PositionalValue struct { 6 | Name string // used in documentation only 7 | Description string 8 | AssignmentVar *string // the var that will get this variable 9 | Position int // the position, not including switches, of this variable 10 | Required bool // this subcommand must always be specified 11 | Found bool // was this positional found during parsing? 12 | Hidden bool // indicates this positional value should be hidden from help 13 | defaultValue string // used for help output 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/jesseduffield/asciigraph/.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 | 14 | # ide 15 | .idea 16 | -------------------------------------------------------------------------------- /vendor/github.com/jesseduffield/asciigraph/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - "1.x" 5 | - "1.8.x" 6 | - "1.9.x" 7 | - "1.10.x" 8 | - master 9 | 10 | install: 11 | - go get github.com/mattn/goveralls 12 | - go get golang.org/x/tools/cmd/cover 13 | 14 | script: 15 | - go test -v -race ./. 16 | - goveralls -service=travis-ci 17 | 18 | notifications: 19 | email: false 20 | -------------------------------------------------------------------------------- /vendor/github.com/jesseduffield/gocui/.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | -------------------------------------------------------------------------------- /vendor/github.com/jesseduffield/kill/README.md: -------------------------------------------------------------------------------- 1 | # Kill 2 | 3 | Go package for killing processes across different platforms. Handles killing children of processes as well as the process itself. 4 | -------------------------------------------------------------------------------- /vendor/github.com/jesseduffield/lazycore/pkg/utils/once_writer.go: -------------------------------------------------------------------------------- 1 | package utils 2 | 3 | import ( 4 | "io" 5 | "sync" 6 | ) 7 | 8 | // This wraps a writer and ensures that before we actually write anything we call a given function first 9 | 10 | type OnceWriter struct { 11 | writer io.Writer 12 | once sync.Once 13 | f func() 14 | } 15 | 16 | var _ io.Writer = &OnceWriter{} 17 | 18 | func NewOnceWriter(writer io.Writer, f func()) *OnceWriter { 19 | return &OnceWriter{ 20 | writer: writer, 21 | f: f, 22 | } 23 | } 24 | 25 | func (self *OnceWriter) Write(p []byte) (n int, err error) { 26 | self.once.Do(func() { 27 | self.f() 28 | }) 29 | 30 | return self.writer.Write(p) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/jesseduffield/yaml/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4 5 | - 1.5 6 | - 1.6 7 | - 1.7 8 | - 1.8 9 | - 1.9 10 | - tip 11 | 12 | go_import_path: github.com/jesseduffield/yaml 13 | -------------------------------------------------------------------------------- /vendor/github.com/jesseduffield/yaml/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/github.com/jesseduffield/yaml/writerc.go: -------------------------------------------------------------------------------- 1 | package yaml 2 | 3 | // Set the writer error and return false. 4 | func yaml_emitter_set_writer_error(emitter *yaml_emitter_t, problem string) bool { 5 | emitter.error = yaml_WRITER_ERROR 6 | emitter.problem = problem 7 | return false 8 | } 9 | 10 | // Flush the output buffer. 11 | func yaml_emitter_flush(emitter *yaml_emitter_t) bool { 12 | if emitter.write_handler == nil { 13 | panic("write handler not set") 14 | } 15 | 16 | // Check if the buffer is empty. 17 | if emitter.buffer_pos == 0 { 18 | return true 19 | } 20 | 21 | if err := emitter.write_handler(emitter, emitter.buffer[:emitter.buffer_pos]); err != nil { 22 | return yaml_emitter_set_writer_error(emitter, "write error: "+err.Error()) 23 | } 24 | emitter.buffer_pos = 0 25 | return true 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.13.x 5 | - tip 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./go.test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | 16 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/go.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -race -coverprofile=profile.out -covermode=atomic "$d" 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.13.x 5 | - tip 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./go.test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/go.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -race -coverprofile=profile.out -covermode=atomic "$d" 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd dragonfly 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | // IsTerminal return true if the file descriptor is terminal. 9 | func IsTerminal(fd uintptr) bool { 10 | _, err := unix.IoctlGetTermios(int(fd), unix.TIOCGETA) 11 | return err == nil 12 | } 13 | 14 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 15 | // terminal. This is also always false on this environment. 16 | func IsCygwinTerminal(fd uintptr) bool { 17 | return false 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_others.go: -------------------------------------------------------------------------------- 1 | // +build appengine js nacl 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on js and appengine classic which is a sandboxed PaaS. 7 | func IsTerminal(fd uintptr) bool { 8 | return false 9 | } 10 | 11 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 12 | // terminal. This is also always false on this environment. 13 | func IsCygwinTerminal(fd uintptr) bool { 14 | return false 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_plan9.go: -------------------------------------------------------------------------------- 1 | // +build plan9 2 | 3 | package isatty 4 | 5 | import ( 6 | "syscall" 7 | ) 8 | 9 | // IsTerminal returns true if the given file descriptor is a terminal. 10 | func IsTerminal(fd uintptr) bool { 11 | path, err := syscall.Fd2path(int(fd)) 12 | if err != nil { 13 | return false 14 | } 15 | return path == "/dev/cons" || path == "/mnt/term/dev/cons" 16 | } 17 | 18 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 19 | // terminal. This is also always false on this environment. 20 | func IsCygwinTerminal(fd uintptr) bool { 21 | return false 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | // see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | var termio unix.Termio 14 | err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio) 15 | return err == nil 16 | } 17 | 18 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 19 | // terminal. This is also always false on this environment. 20 | func IsCygwinTerminal(fd uintptr) bool { 21 | return false 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_tcgets.go: -------------------------------------------------------------------------------- 1 | // +build linux aix 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | // IsTerminal return true if the file descriptor is terminal. 9 | func IsTerminal(fd uintptr) bool { 10 | _, err := unix.IoctlGetTermios(int(fd), unix.TCGETS) 11 | return err == nil 12 | } 13 | 14 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 15 | // terminal. This is also always false on this environment. 16 | func IsCygwinTerminal(fd uintptr) bool { 17 | return false 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "config:base" 4 | ], 5 | "postUpdateOptions": [ 6 | "gomodTidy" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-runewidth/runewidth_appengine.go: -------------------------------------------------------------------------------- 1 | //go:build appengine 2 | // +build appengine 3 | 4 | package runewidth 5 | 6 | // IsEastAsian return true if the current locale is CJK 7 | func IsEastAsian() bool { 8 | return false 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-runewidth/runewidth_js.go: -------------------------------------------------------------------------------- 1 | //go:build js && !appengine 2 | // +build js,!appengine 3 | 4 | package runewidth 5 | 6 | func IsEastAsian() bool { 7 | // TODO: Implement this for the web. Detect east asian in a compatible way, and return true. 8 | return false 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-runewidth/runewidth_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows && !appengine 2 | // +build windows,!appengine 3 | 4 | package runewidth 5 | 6 | import ( 7 | "syscall" 8 | ) 9 | 10 | var ( 11 | kernel32 = syscall.NewLazyDLL("kernel32") 12 | procGetConsoleOutputCP = kernel32.NewProc("GetConsoleOutputCP") 13 | ) 14 | 15 | // IsEastAsian return true if the current locale is CJK 16 | func IsEastAsian() bool { 17 | r1, _, _ := procGetConsoleOutputCP.Call() 18 | if r1 == 0 { 19 | return false 20 | } 21 | 22 | switch int(r1) { 23 | case 932, 51932, 936, 949, 950: 24 | return true 25 | } 26 | 27 | return false 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/mcuadros/go-lookup/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.2 5 | - 1.3 6 | - 1.4 7 | - tip 8 | 9 | script: 10 | - go get gopkg.in/check.v1 11 | - go test -v . 12 | -------------------------------------------------------------------------------- /vendor/github.com/mgutz/str/.gitignore: -------------------------------------------------------------------------------- 1 | tmp/ 2 | *.log 3 | _* 4 | node_modules 5 | example/dist 6 | /Gododir/godobin* 7 | /Gododir/Gododir 8 | -------------------------------------------------------------------------------- /vendor/github.com/mgutz/str/CREDITS: -------------------------------------------------------------------------------- 1 | * [string.js](http://stringjs.com) - I contributed several 2 | functions to this project. 3 | 4 | * [bbgen.net](http://bbgen.net/blog/2011/06/string-to-argc-argv/) 5 | 6 | -------------------------------------------------------------------------------- /vendor/github.com/mgutz/str/VERSION: -------------------------------------------------------------------------------- 1 | 1.1.0 2 | -------------------------------------------------------------------------------- /vendor/github.com/mgutz/str/doc.go: -------------------------------------------------------------------------------- 1 | // Package str is a comprehensive set of string functions to build more 2 | // Go awesomeness. Str complements Go's standard packages and does not duplicate 3 | // functionality found in `strings` or `strconv`. 4 | // 5 | // Str is based on plain functions instead of object-based methods, 6 | // consistent with Go standard string packages. 7 | // 8 | // str.Between("foo", "", "") == "foo" 9 | // 10 | // Str supports pipelining instead of chaining 11 | // 12 | // s := str.Pipe("\nabcdef\n", Clean, BetweenF("a", "f"), ChompLeftF("bc")) 13 | // 14 | // User-defined filters can be added to the pipeline by inserting a function 15 | // or closure that returns a function with this signature 16 | // 17 | // func(string) string 18 | // 19 | package str 20 | -------------------------------------------------------------------------------- /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/petermattis/goid/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *.test 3 | .*.swp 4 | .DS_Store 5 | -------------------------------------------------------------------------------- /vendor/github.com/petermattis/goid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.3.x 5 | - 1.4.x 6 | - 1.5.x 7 | - 1.6.x 8 | - 1.7.x 9 | - 1.8.x 10 | - 1.9.x 11 | - master 12 | -------------------------------------------------------------------------------- /vendor/github.com/petermattis/goid/README.md: -------------------------------------------------------------------------------- 1 | # goid [![Build Status](https://travis-ci.org/petermattis/goid.svg?branch=master)](https://travis-ci.org/petermattis/goid) 2 | 3 | Programatically retrieve the current goroutine's ID. See [the CI 4 | configuration](.travis.yml) for supported Go versions. In addition, 5 | gccgo 7.2.1 (Go 1.8.3) is supported. 6 | -------------------------------------------------------------------------------- /vendor/github.com/petermattis/goid/goid_go1.4.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 | // Assembly to get into package runtime without using exported symbols. 6 | // See https://github.com/golang/go/blob/release-branch.go1.4/misc/cgo/test/backdoor/thunk.s 7 | 8 | // +build amd64 amd64p32 arm 386 9 | // +build go1.4,!go1.5 10 | 11 | #include "textflag.h" 12 | 13 | #ifdef GOARCH_arm 14 | #define JMP B 15 | #endif 16 | 17 | TEXT ·getg(SB),NOSPLIT,$0-0 18 | JMP runtime·getg(SB) 19 | -------------------------------------------------------------------------------- /vendor/github.com/petermattis/goid/goid_go1.5_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Peter Mattis. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 12 | // implied. See the License for the specific language governing 13 | // permissions and limitations under the License. See the AUTHORS file 14 | // for names of contributors. 15 | 16 | // +build amd64 amd64p32 17 | // +build gc,go1.5 18 | 19 | package goid 20 | 21 | func Get() int64 22 | -------------------------------------------------------------------------------- /vendor/github.com/petermattis/goid/runtime_gccgo_go1.8.go: -------------------------------------------------------------------------------- 1 | // +build gccgo,go1.8 2 | 3 | package goid 4 | 5 | // https://github.com/gcc-mirror/gcc/blob/gcc-7-branch/libgo/go/runtime/runtime2.go#L329-L422 6 | 7 | type g struct { 8 | _panic uintptr 9 | _defer uintptr 10 | m uintptr 11 | syscallsp uintptr 12 | syscallpc uintptr 13 | param uintptr 14 | atomicstatus uint32 15 | goid int64 // Here it is! 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/petermattis/goid/runtime_go1.9.go: -------------------------------------------------------------------------------- 1 | // +build gc,go1.9 2 | 3 | package goid 4 | 5 | type stack struct { 6 | lo uintptr 7 | hi uintptr 8 | } 9 | 10 | type gobuf struct { 11 | sp uintptr 12 | pc uintptr 13 | g uintptr 14 | ctxt uintptr 15 | ret uintptr 16 | lr uintptr 17 | bp uintptr 18 | } 19 | 20 | type g struct { 21 | stack stack 22 | stackguard0 uintptr 23 | stackguard1 uintptr 24 | 25 | _panic uintptr 26 | _defer uintptr 27 | m uintptr 28 | sched gobuf 29 | syscallsp uintptr 30 | syscallpc uintptr 31 | stktopsp uintptr 32 | param uintptr 33 | atomicstatus uint32 34 | stackLock uint32 35 | goid int64 // Here it is! 36 | } 37 | -------------------------------------------------------------------------------- /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/pkg/errors/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: build-{build}.{branch} 2 | 3 | clone_folder: C:\gopath\src\github.com\pkg\errors 4 | shallow_clone: true # for startup speed 5 | 6 | environment: 7 | GOPATH: C:\gopath 8 | 9 | platform: 10 | - x64 11 | 12 | # http://www.appveyor.com/docs/installed-software 13 | install: 14 | # some helpful output for debugging builds 15 | - go version 16 | - go env 17 | # pre-installed MinGW at C:\MinGW is 32bit only 18 | # but MSYS2 at C:\msys64 has mingw64 19 | - set PATH=C:\msys64\mingw64\bin;%PATH% 20 | - gcc --version 21 | - g++ --version 22 | 23 | build_script: 24 | - go install -v ./... 25 | 26 | test_script: 27 | - set PATH=C:\gopath\bin;%PATH% 28 | - go test -v ./... 29 | 30 | #artifacts: 31 | # - path: '%GOPATH%\bin\*.exe' 32 | deploy: off 33 | -------------------------------------------------------------------------------- /vendor/github.com/samber/lo/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | before_install: 3 | - go mod download 4 | - make tools 5 | go: 6 | - "1.18" 7 | script: make test 8 | -------------------------------------------------------------------------------- /vendor/github.com/samber/lo/Dockerfile: -------------------------------------------------------------------------------- 1 | 2 | FROM golang:1.18 3 | 4 | WORKDIR /go/src/github.com/samber/lo 5 | 6 | COPY Makefile go.* ./ 7 | 8 | RUN make tools 9 | -------------------------------------------------------------------------------- /vendor/github.com/samber/lo/constraints.go: -------------------------------------------------------------------------------- 1 | package lo 2 | 3 | // Clonable defines a constraint of types having Clone() T method. 4 | type Clonable[T any] interface { 5 | Clone() T 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/samber/lo/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | 3 | services: 4 | dev: 5 | image: golang:1.18-bullseye 6 | volumes: 7 | - ./:/go/src/github.com/samber/lo 8 | working_dir: /go/src/github.com/samber/lo 9 | command: make watch-test 10 | -------------------------------------------------------------------------------- /vendor/github.com/samber/lo/func.go: -------------------------------------------------------------------------------- 1 | package lo 2 | 3 | // Partial returns new function that, when called, has its first argument set to the provided value. 4 | func Partial[T1, T2, R any](f func(T1, T2) R, arg1 T1) func(T2) R { 5 | return func(t2 T2) R { 6 | return f(arg1, t2) 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/samber/lo/test.go: -------------------------------------------------------------------------------- 1 | package lo 2 | 3 | import ( 4 | "os" 5 | "testing" 6 | "time" 7 | ) 8 | 9 | // https://github.com/stretchr/testify/issues/1101 10 | func testWithTimeout(t *testing.T, timeout time.Duration) { 11 | t.Helper() 12 | 13 | testFinished := make(chan struct{}) 14 | t.Cleanup(func() { close(testFinished) }) 15 | 16 | go func() { 17 | select { 18 | case <-testFinished: 19 | case <-time.After(timeout): 20 | t.Errorf("test timed out after %s", timeout) 21 | os.Exit(1) 22 | } 23 | }() 24 | } 25 | 26 | type foo struct { 27 | bar string 28 | } 29 | 30 | func (f foo) Clone() foo { 31 | return foo{f.bar} 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/sasha-s/go-deadlock/.travis.yml: -------------------------------------------------------------------------------- 1 | arch: 2 | - amd64 3 | - ppc64le 4 | language: go 5 | sudo: false 6 | go: 7 | - 1.5.x 8 | - 1.6.x 9 | - 1.7.x 10 | - 1.8.x 11 | - 1.9.x 12 | - 1.10.x 13 | - 1.11.x 14 | - master 15 | - tip 16 | 17 | before_install: 18 | - go get golang.org/x/tools/cmd/cover 19 | - go get -t -v ./... 20 | 21 | script: 22 | - ./test.sh 23 | 24 | after_success: 25 | - bash <(curl -s https://codecov.io/bash) 26 | -------------------------------------------------------------------------------- /vendor/github.com/sasha-s/go-deadlock/deadlock_map.go: -------------------------------------------------------------------------------- 1 | // +build go1.9 2 | 3 | package deadlock 4 | 5 | import "sync" 6 | 7 | // Map is sync.Map wrapper 8 | type Map struct { 9 | sync.Map 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/sasha-s/go-deadlock/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./...); do 7 | go test -coverprofile=profile.out -covermode=atomic "$d" 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/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/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package logrus is a structured logger for Go, completely API compatible with the standard library logger. 3 | 4 | 5 | The simplest way to use Logrus is simply the package-level exported logger: 6 | 7 | package main 8 | 9 | import ( 10 | log "github.com/sirupsen/logrus" 11 | ) 12 | 13 | func main() { 14 | log.WithFields(log.Fields{ 15 | "animal": "walrus", 16 | "number": 1, 17 | "size": 10, 18 | }).Info("A walrus appears") 19 | } 20 | 21 | Output: 22 | time="2015-09-07T08:48:33Z" level=info msg="A walrus appears" animal=walrus number=1 size=10 23 | 24 | For a full guide visit https://github.com/sirupsen/logrus 25 | */ 26 | package logrus 27 | -------------------------------------------------------------------------------- /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/sirupsen/logrus/terminal_check_windows.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!js,windows 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | 9 | "golang.org/x/sys/windows" 10 | ) 11 | 12 | func checkIfTerminal(w io.Writer) bool { 13 | switch v := w.(type) { 14 | case *os.File: 15 | handle := windows.Handle(v.Fd()) 16 | var mode uint32 17 | if err := windows.GetConsoleMode(handle, &mode); err != nil { 18 | return false 19 | } 20 | mode |= windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING 21 | if err := windows.SetConsoleMode(handle, mode); err != nil { 22 | return false 23 | } 24 | return true 25 | } 26 | return false 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/spkg/bom/.gitignore: -------------------------------------------------------------------------------- 1 | coverage.out 2 | -------------------------------------------------------------------------------- /vendor/github.com/spkg/bom/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.6 4 | - 1.5 5 | - 1.4 6 | - 1.3 7 | 8 | install: 9 | - go get github.com/stretchr/testify/assert 10 | - go get golang.org/x/tools/cmd/cover 11 | - go get github.com/mattn/goveralls 12 | 13 | script: 14 | - go test -v -covermode=count -coverprofile=coverage.out 15 | - $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/goveralls -coverprofile=coverage.out -service=travis-ci 16 | 17 | -------------------------------------------------------------------------------- /vendor/github.com/spkg/bom/discard_go14.go: -------------------------------------------------------------------------------- 1 | // +build !go1.5 2 | 3 | package bom 4 | 5 | import "bufio" 6 | 7 | func discardBytes(buf *bufio.Reader, n int) { 8 | // cannot use the buf.Discard method as it was introduced in Go 1.5 9 | for i := 0; i < n; i++ { 10 | buf.ReadByte() 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/spkg/bom/discard_go15.go: -------------------------------------------------------------------------------- 1 | // +build go1.5 2 | 3 | package bom 4 | 5 | import "bufio" 6 | 7 | func discardBytes(buf *bufio.Reader, n int) { 8 | // the Discard method was introduced in Go 1.5 9 | buf.Discard(n) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentFormat}} 2 | func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool { 3 | if h, ok := t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool { 3 | if h, ok := a.t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/errors.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | // AnError is an error instance useful for testing. If the code does not care 8 | // about error specifics, and only needs to return the error for example, this 9 | // error should be used to make the test code more readable. 10 | var AnError = errors.New("assert.AnError general error for testing") 11 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/forward_assertions.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/github.com/xo/terminfo/.gitignore: -------------------------------------------------------------------------------- 1 | /.cache/ 2 | 3 | /cmd/infocmp/infocmp 4 | /cmd/infocmp/.out/ 5 | 6 | /infocmp 7 | /.out/ 8 | 9 | *.txt 10 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | // Package otelhttp provides an http.Handler and functions that are intended 5 | // to be used to add tracing by wrapping existing handlers (with Handler) and 6 | // routes WithRouteTag. 7 | package otelhttp // import "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp" 8 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconvutil/gen.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package semconvutil // import "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/internal/semconvutil" 5 | 6 | // Generate semconvutil package: 7 | //go:generate gotmpl --body=../../../../../../internal/shared/semconvutil/httpconv_test.go.tmpl "--data={}" --out=httpconv_test.go 8 | //go:generate gotmpl --body=../../../../../../internal/shared/semconvutil/httpconv.go.tmpl "--data={}" --out=httpconv.go 9 | //go:generate gotmpl --body=../../../../../../internal/shared/semconvutil/netconv_test.go.tmpl "--data={}" --out=netconv_test.go 10 | //go:generate gotmpl --body=../../../../../../internal/shared/semconvutil/netconv.go.tmpl "--data={}" --out=netconv.go 11 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp/version.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package otelhttp // import "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp" 5 | 6 | // Version is the current release version of the otelhttp instrumentation. 7 | func Version() string { 8 | return "0.53.0" 9 | // This string is updated by the pre_release.sh script during release 10 | } 11 | 12 | // SemVersion is the semantic version to be supplied to tracer/meter creation. 13 | // 14 | // Deprecated: Use [Version] instead. 15 | func SemVersion() string { 16 | return Version() 17 | } 18 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.codespellignore: -------------------------------------------------------------------------------- 1 | ot 2 | fo 3 | te 4 | collison 5 | consequentially 6 | ans 7 | nam 8 | valu 9 | thirdparty 10 | -------------------------------------------------------------------------------- /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,go.work,go.work.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/.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/CODEOWNERS: -------------------------------------------------------------------------------- 1 | ##################################################### 2 | # 3 | # List of approvers for this repository 4 | # 5 | ##################################################### 6 | # 7 | # Learn about membership in OpenTelemetry community: 8 | # https://github.com/open-telemetry/community/blob/main/community-membership.md 9 | # 10 | # 11 | # Learn about CODEOWNERS file format: 12 | # https://help.github.com/en/articles/about-code-owners 13 | # 14 | 15 | * @MrAlias @XSAM @dashpole @MadVikingGod @pellared @hanyuancheung @dmathieu 16 | 17 | CODEOWNERS @MrAlias @MadVikingGod @pellared @dashpole @XSAM @dmathieu 18 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/attribute/README.md: -------------------------------------------------------------------------------- 1 | # Attribute 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/attribute)](https://pkg.go.dev/go.opentelemetry.io/otel/attribute) 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/attribute/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | // Package attribute provides key and value attributes. 5 | package attribute // import "go.opentelemetry.io/otel/attribute" 6 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/baggage/README.md: -------------------------------------------------------------------------------- 1 | # Baggage 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/baggage)](https://pkg.go.dev/go.opentelemetry.io/otel/baggage) 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/baggage/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | /* 5 | Package baggage provides functionality for storing and retrieving 6 | baggage items in Go context. For propagating the baggage, see the 7 | go.opentelemetry.io/otel/propagation package. 8 | */ 9 | package baggage // import "go.opentelemetry.io/otel/baggage" 10 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/codes/README.md: -------------------------------------------------------------------------------- 1 | # Codes 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/codes)](https://pkg.go.dev/go.opentelemetry.io/otel/codes) 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/codes/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | /* 5 | Package codes defines the canonical error codes used by OpenTelemetry. 6 | 7 | It conforms to [the OpenTelemetry 8 | specification](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.20.0/specification/trace/api.md#set-status). 9 | */ 10 | package codes // import "go.opentelemetry.io/otel/codes" 11 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/internal_logging.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package otel // import "go.opentelemetry.io/otel" 5 | 6 | import ( 7 | "github.com/go-logr/logr" 8 | 9 | "go.opentelemetry.io/otel/internal/global" 10 | ) 11 | 12 | // SetLogger configures the logger used internally to opentelemetry. 13 | func SetLogger(logger logr.Logger) { 14 | global.SetLogger(logger) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/metric/README.md: -------------------------------------------------------------------------------- 1 | # Metric API 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/metric)](https://pkg.go.dev/go.opentelemetry.io/otel/metric) 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/metric/embedded/README.md: -------------------------------------------------------------------------------- 1 | # Metric Embedded 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/metric/embedded)](https://pkg.go.dev/go.opentelemetry.io/otel/metric/embedded) 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/propagation.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package otel // import "go.opentelemetry.io/otel" 5 | 6 | import ( 7 | "go.opentelemetry.io/otel/internal/global" 8 | "go.opentelemetry.io/otel/propagation" 9 | ) 10 | 11 | // GetTextMapPropagator returns the global TextMapPropagator. If none has been 12 | // set, a No-Op TextMapPropagator is returned. 13 | func GetTextMapPropagator() propagation.TextMapPropagator { 14 | return global.TextMapPropagator() 15 | } 16 | 17 | // SetTextMapPropagator sets propagator as the global TextMapPropagator. 18 | func SetTextMapPropagator(propagator propagation.TextMapPropagator) { 19 | global.SetTextMapPropagator(propagator) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/propagation/README.md: -------------------------------------------------------------------------------- 1 | # Propagation 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/propagation)](https://pkg.go.dev/go.opentelemetry.io/otel/propagation) 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/propagation/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | /* 5 | Package propagation contains OpenTelemetry context propagators. 6 | 7 | OpenTelemetry propagators are used to extract and inject context data from and 8 | into messages exchanged by applications. The propagator supported by this 9 | package is the W3C Trace Context encoding 10 | (https://www.w3.org/TR/trace-context/), and W3C Baggage 11 | (https://www.w3.org/TR/baggage/). 12 | */ 13 | package propagation // import "go.opentelemetry.io/otel/propagation" 14 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": [ 4 | "config:recommended" 5 | ], 6 | "ignorePaths": [], 7 | "labels": ["Skip Changelog", "dependencies"], 8 | "postUpdateOptions" : [ 9 | "gomodTidy" 10 | ], 11 | "packageRules": [ 12 | { 13 | "matchManagers": ["gomod"], 14 | "matchDepTypes": ["indirect"], 15 | "enabled": true 16 | }, 17 | { 18 | "matchFileNames": ["internal/tools/**"], 19 | "matchManagers": ["gomod"], 20 | "matchDepTypes": ["indirect"], 21 | "enabled": false 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/requirements.txt: -------------------------------------------------------------------------------- 1 | codespell==2.3.0 2 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.20.0/README.md: -------------------------------------------------------------------------------- 1 | # Semconv v1.20.0 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/semconv/v1.20.0)](https://pkg.go.dev/go.opentelemetry.io/otel/semconv/v1.20.0) 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.20.0/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | // Package semconv implements OpenTelemetry semantic conventions. 5 | // 6 | // OpenTelemetry semantic conventions are agreed standardized naming 7 | // patterns for OpenTelemetry things. This package represents the conventions 8 | // as of the v1.20.0 version of the OpenTelemetry specification. 9 | package semconv // import "go.opentelemetry.io/otel/semconv/v1.20.0" 10 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.20.0/exception.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package semconv // import "go.opentelemetry.io/otel/semconv/v1.20.0" 5 | 6 | const ( 7 | // ExceptionEventName is the name of the Span event representing an exception. 8 | ExceptionEventName = "exception" 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.20.0/http.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package semconv // import "go.opentelemetry.io/otel/semconv/v1.20.0" 5 | 6 | // HTTP scheme attributes. 7 | var ( 8 | HTTPSchemeHTTP = HTTPSchemeKey.String("http") 9 | HTTPSchemeHTTPS = HTTPSchemeKey.String("https") 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.20.0/schema.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package semconv // import "go.opentelemetry.io/otel/semconv/v1.20.0" 5 | 6 | // SchemaURL is the schema URL that matches the version of the semantic conventions 7 | // that this package defines. Semconv packages starting from v1.4.0 must declare 8 | // non-empty schema URL in the form https://opentelemetry.io/schemas/ 9 | const SchemaURL = "https://opentelemetry.io/schemas/1.20.0" 10 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.24.0/README.md: -------------------------------------------------------------------------------- 1 | # Semconv v1.24.0 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/semconv/v1.24.0)](https://pkg.go.dev/go.opentelemetry.io/otel/semconv/v1.24.0) 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.24.0/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | // Package semconv implements OpenTelemetry semantic conventions. 5 | // 6 | // OpenTelemetry semantic conventions are agreed standardized naming 7 | // patterns for OpenTelemetry things. This package represents the v1.24.0 8 | // version of the OpenTelemetry semantic conventions. 9 | package semconv // import "go.opentelemetry.io/otel/semconv/v1.24.0" 10 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.24.0/exception.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package semconv // import "go.opentelemetry.io/otel/semconv/v1.24.0" 5 | 6 | const ( 7 | // ExceptionEventName is the name of the Span event representing an exception. 8 | ExceptionEventName = "exception" 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/semconv/v1.24.0/schema.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package semconv // import "go.opentelemetry.io/otel/semconv/v1.24.0" 5 | 6 | // SchemaURL is the schema URL that matches the version of the semantic conventions 7 | // that this package defines. Semconv packages starting from v1.4.0 must declare 8 | // non-empty schema URL in the form https://opentelemetry.io/schemas/ 9 | const SchemaURL = "https://opentelemetry.io/schemas/1.24.0" 10 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/trace/README.md: -------------------------------------------------------------------------------- 1 | # Trace API 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/trace)](https://pkg.go.dev/go.opentelemetry.io/otel/trace) 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/trace/embedded/README.md: -------------------------------------------------------------------------------- 1 | # Trace Embedded 2 | 3 | [![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/trace/embedded)](https://pkg.go.dev/go.opentelemetry.io/otel/trace/embedded) 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/trace/nonrecording.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package trace // import "go.opentelemetry.io/otel/trace" 5 | 6 | // nonRecordingSpan is a minimal implementation of a Span that wraps a 7 | // SpanContext. It performs no operations other than to return the wrapped 8 | // SpanContext. 9 | type nonRecordingSpan struct { 10 | noopSpan 11 | 12 | sc SpanContext 13 | } 14 | 15 | // SpanContext returns the wrapped SpanContext. 16 | func (s nonRecordingSpan) SpanContext() SpanContext { return s.sc } 17 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/verify_readmes.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright The OpenTelemetry Authors 4 | # SPDX-License-Identifier: Apache-2.0 5 | 6 | set -euo pipefail 7 | 8 | dirs=$(find . -type d -not -path "*/internal*" -not -path "*/test*" -not -path "*/example*" -not -path "*/.*" | sort) 9 | 10 | missingReadme=false 11 | for dir in $dirs; do 12 | if [ ! -f "$dir/README.md" ]; then 13 | echo "couldn't find README.md for $dir" 14 | missingReadme=true 15 | fi 16 | done 17 | 18 | if [ "$missingReadme" = true ] ; then 19 | echo "Error: some READMEs couldn't be found." 20 | exit 1 21 | fi 22 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/version.go: -------------------------------------------------------------------------------- 1 | // Copyright The OpenTelemetry Authors 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | package otel // import "go.opentelemetry.io/otel" 5 | 6 | // Version is the current release version of OpenTelemetry in use. 7 | func Version() string { 8 | return "1.28.0" 9 | } 10 | -------------------------------------------------------------------------------- /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/asm_plan9_arm.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | // System call support for plan9 on arm 8 | 9 | // Just jump to package syscall's implementation for all these functions. 10 | // The runtime may know about them. 11 | 12 | TEXT ·Syscall(SB),NOSPLIT,$0-32 13 | JMP syscall·Syscall(SB) 14 | 15 | TEXT ·Syscall6(SB),NOSPLIT,$0-44 16 | JMP syscall·Syscall6(SB) 17 | 18 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 19 | JMP syscall·RawSyscall(SB) 20 | 21 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 22 | JMP syscall·RawSyscall6(SB) 23 | 24 | TEXT ·seek(SB),NOSPLIT,$0-36 25 | JMP syscall·exit(SB) 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/env_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Plan 9 environment variables. 6 | 7 | package plan9 8 | 9 | import ( 10 | "syscall" 11 | ) 12 | 13 | func Getenv(key string) (value string, found bool) { 14 | return syscall.Getenv(key) 15 | } 16 | 17 | func Setenv(key, value string) error { 18 | return syscall.Setenv(key, value) 19 | } 20 | 21 | func Clearenv() { 22 | syscall.Clearenv() 23 | } 24 | 25 | func Environ() []string { 26 | return syscall.Environ() 27 | } 28 | 29 | func Unsetenv(key string) error { 30 | return syscall.Unsetenv(key) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/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_bsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (freebsd || netbsd || openbsd) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // System call support for 386 BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-28 15 | JMP syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 18 | JMP syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 21 | JMP syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 24 | JMP syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 27 | JMP syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (freebsd || netbsd || openbsd) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // System call support for ARM BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-28 15 | B syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 18 | B syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 21 | B syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 24 | B syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 27 | B syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || freebsd || netbsd || openbsd) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // System call support for ARM64 BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-56 15 | JMP syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 | JMP syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 21 | JMP syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 24 | JMP syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 27 | JMP syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || freebsd || netbsd || openbsd) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // System call support for RISCV64 BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-56 15 | JMP syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 | JMP syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 21 | JMP syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 24 | JMP syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 27 | JMP syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for mips64, OpenBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/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/env_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | // Unix environment variables. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getenv(key string) (value string, found bool) { 14 | return syscall.Getenv(key) 15 | } 16 | 17 | func Setenv(key, value string) error { 18 | return syscall.Setenv(key, value) 19 | } 20 | 21 | func Clearenv() { 22 | syscall.Clearenv() 23 | } 24 | 25 | func Environ() []string { 26 | return syscall.Environ() 27 | } 28 | 29 | func Unsetenv(key string) error { 30 | return syscall.Unsetenv(key) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_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/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin && race) || (linux && race) || (freebsd && race) 6 | 7 | package unix 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | 7 | package unix 8 | 9 | // ReadDirent reads directory entries from fd and writes them into buf. 10 | func ReadDirent(fd int, buf []byte) (n int, err error) { 11 | return Getdents(fd, buf) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdirentries.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin || zos 6 | 7 | package unix 8 | 9 | import "unsafe" 10 | 11 | // ReadDirent reads directory entries from fd and writes them into buf. 12 | func ReadDirent(fd int, buf []byte) (n int, err error) { 13 | // Final argument is (basep *uintptr) and the syscall doesn't take nil. 14 | // 64 bits should be enough. (32 bits isn't even on 386). Since the 15 | // actual system call is getdirentries64, 64 is a good guess. 16 | // TODO(rsc): Can we use a single global basep for all calls? 17 | var base = (*uintptr)(unsafe.Pointer(new(uint64))) 18 | return Getdirentries(fd, buf, base) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | // Round the length of a raw sockaddr up to align it properly. 8 | func cmsgAlignOf(salen int) int { 9 | salign := SizeofPtr 10 | if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { 11 | // 64-bit Dragonfly before the September 2019 ABI changes still requires 12 | // 32-bit aligned access to network subsystem. 13 | salign = 4 14 | } 15 | return (salen + salign - 1) & ^(salign - 1) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_hurd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build hurd 6 | 7 | package unix 8 | 9 | /* 10 | #include 11 | int ioctl(int, unsigned long int, uintptr_t); 12 | */ 13 | import "C" 14 | 15 | func ioctl(fd int, req uint, arg uintptr) (err error) { 16 | r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(arg)) 17 | if r0 == -1 && er != nil { 18 | err = er 19 | } 20 | return 21 | } 22 | 23 | func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { 24 | r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(uintptr(arg))) 25 | if r0 == -1 && er != nil { 26 | err = er 27 | } 28 | return 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_hurd_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build 386 && hurd 6 | 7 | package unix 8 | 9 | const ( 10 | TIOCGETA = 0x62251713 11 | ) 12 | 13 | type Winsize struct { 14 | Row uint16 15 | Col uint16 16 | Xpixel uint16 17 | Ypixel uint16 18 | } 19 | 20 | type Termios struct { 21 | Iflag uint32 22 | Oflag uint32 23 | Cflag uint32 24 | Lflag uint32 25 | Cc [20]uint8 26 | Ispeed int32 27 | Ospeed int32 28 | } 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_alarm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64) 6 | 7 | package unix 8 | 9 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH 10 | // values. 11 | 12 | //sys Alarm(seconds uint) (remaining uint, err error) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && linux && gc 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //go:noescape 12 | func gettimeofday(tv *Timeval) (err syscall.Errno) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc 6 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc && 386 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | 15 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 16 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build arm && gc && linux 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gccgo && arm 6 | 7 | package unix 8 | 9 | import ( 10 | "syscall" 11 | "unsafe" 12 | ) 13 | 14 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 15 | var newoffset int64 16 | offsetLow := uint32(offset & 0xffffffff) 17 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 18 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 19 | return newoffset, err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && solaris 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: usec} 15 | } 16 | 17 | func (iov *Iovec) SetLen(length int) { 18 | iov.Len = uint64(length) 19 | } 20 | 21 | func (msghdr *Msghdr) SetIovlen(length int) { 22 | msghdr.Iovlen = int32(length) 23 | } 24 | 25 | func (cmsg *Cmsghdr) SetLen(length int) { 26 | cmsg.Len = uint32(length) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 12 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 13 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 14 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux 6 | 7 | package unix 8 | 9 | import "runtime" 10 | 11 | // SysvShmCtl performs control operations on the shared memory segment 12 | // specified by id. 13 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 14 | if runtime.GOARCH == "arm" || 15 | runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" { 16 | cmd |= ipc_64 17 | } 18 | 19 | return shmctl(id, cmd, desc) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin && !ios) || zos 6 | 7 | package unix 8 | 9 | // SysvShmCtl performs control operations on the shared memory segment 10 | // specified by id. 11 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 12 | return shmctl(id, cmd, desc) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go: -------------------------------------------------------------------------------- 1 | // Code generated by linux/mkall.go generatePtraceRegSet("arm64"). DO NOT EDIT. 2 | 3 | package unix 4 | 5 | import "unsafe" 6 | 7 | // PtraceGetRegSetArm64 fetches the registers used by arm64 binaries. 8 | func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error { 9 | iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))} 10 | return ptracePtr(PTRACE_GETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec)) 11 | } 12 | 13 | // PtraceSetRegSetArm64 sets the registers used by arm64 binaries. 14 | func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error { 15 | iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))} 16 | return ptracePtr(PTRACE_SETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec)) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | 7 | package windows 8 | 9 | import "syscall" 10 | 11 | type Errno = syscall.Errno 12 | type SysProcAttr = syscall.SysProcAttr 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build generate 6 | 7 | package windows 8 | 9 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go setupapi_windows.go 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && race 6 | 7 | package windows 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && !race 6 | 7 | package windows 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | 7 | package windows 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + itoa(-val) 12 | } 13 | var buf [32]byte // big enough for int64 14 | i := len(buf) - 1 15 | for val >= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/README.md: -------------------------------------------------------------------------------- 1 | # Go terminal/console support 2 | 3 | [![Go Reference](https://pkg.go.dev/badge/golang.org/x/term.svg)](https://pkg.go.dev/golang.org/x/term) 4 | 5 | This repository provides Go terminal and console support packages. 6 | 7 | ## Download/Install 8 | 9 | The easiest way to install is to run `go get -u golang.org/x/term`. You can 10 | also manually git clone the repository to `$GOPATH/src/golang.org/x/term`. 11 | 12 | ## Report Issues / Send Patches 13 | 14 | This repository uses Gerrit for code changes. To learn how to submit changes to 15 | this repository, see https://golang.org/doc/contribute.html. 16 | 17 | The main issue tracker for the term repository is located at 18 | https://github.com/golang/go/issues. Prefix your issue with "x/term:" in the 19 | subject line, so it is easy to find. 20 | -------------------------------------------------------------------------------- /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/xerrors/README: -------------------------------------------------------------------------------- 1 | This repository holds the transition packages for the new Go 1.13 error values. 2 | See golang.org/design/29934-error-values. 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/xerrors/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/xerrors/internal/internal.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package internal 6 | 7 | // EnableTrace indicates whether stack information should be recorded in errors. 8 | var EnableTrace = true 9 | -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------