mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
75f6929b44
[pkg/archive] Update archive/copy path handling - Remove unused TarOptions.Name field. - Add new TarOptions.RebaseNames field. - Update some of the logic around path dir/base splitting. - Update some of the logic behind archive entry name rebasing. [api/types] Add LinkTarget field to PathStat [daemon] Fix stat, archive, extract of symlinks These operations *should* resolve symlinks that are in the path but if the resource itself is a symlink then it *should not* be resolved. This patch puts this logic into a common function `resolvePath` which resolves symlinks of the path's dir in scope of the container rootfs but does not resolve the final element of the path. Now archive, extract, and stat operations will return symlinks if the path is indeed a symlink. [api/client] Update cp path hanling [docs/reference/api] Update description of stat Add the linkTarget field to the header of the archive endpoint. Remove path field. [integration-cli] Fix/Add cp symlink test cases Copying a symlink should do just that: copy the symlink NOT copy the target of the symlink. Also, the resulting file from the copy should have the name of the symlink NOT the name of the target file. Copying to a symlink should copy to the symlink target and not modify the symlink itself. Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn) |
||
---|---|---|
.. | ||
fixtures | ||
check_test.go | ||
docker_api_attach_test.go | ||
docker_api_containers_test.go | ||
docker_api_events_test.go | ||
docker_api_exec_resize_test.go | ||
docker_api_exec_test.go | ||
docker_api_images_test.go | ||
docker_api_info_test.go | ||
docker_api_inspect_test.go | ||
docker_api_logs_test.go | ||
docker_api_network_test.go | ||
docker_api_resize_test.go | ||
docker_api_service_test.go | ||
docker_api_stats_test.go | ||
docker_api_test.go | ||
docker_api_version_test.go | ||
docker_cli_attach_test.go | ||
docker_cli_attach_unix_test.go | ||
docker_cli_build_test.go | ||
docker_cli_build_unix_test.go | ||
docker_cli_by_digest_test.go | ||
docker_cli_commit_test.go | ||
docker_cli_config_test.go | ||
docker_cli_cp_from_container_test.go | ||
docker_cli_cp_test.go | ||
docker_cli_cp_to_container_test.go | ||
docker_cli_cp_utils.go | ||
docker_cli_create_test.go | ||
docker_cli_daemon_experimental_test.go | ||
docker_cli_daemon_test.go | ||
docker_cli_diff_test.go | ||
docker_cli_events_test.go | ||
docker_cli_events_unix_test.go | ||
docker_cli_exec_test.go | ||
docker_cli_exec_unix_test.go | ||
docker_cli_experimental_test.go | ||
docker_cli_export_import_test.go | ||
docker_cli_help_test.go | ||
docker_cli_history_test.go | ||
docker_cli_images_test.go | ||
docker_cli_import_test.go | ||
docker_cli_info_test.go | ||
docker_cli_inspect_experimental_test.go | ||
docker_cli_inspect_test.go | ||
docker_cli_kill_test.go | ||
docker_cli_links_test.go | ||
docker_cli_links_unix_test.go | ||
docker_cli_login_test.go | ||
docker_cli_logs_test.go | ||
docker_cli_nat_test.go | ||
docker_cli_network_test.go | ||
docker_cli_pause_test.go | ||
docker_cli_port_test.go | ||
docker_cli_port_unix_test.go | ||
docker_cli_proxy_test.go | ||
docker_cli_ps_test.go | ||
docker_cli_pull_test.go | ||
docker_cli_push_test.go | ||
docker_cli_rename_test.go | ||
docker_cli_restart_test.go | ||
docker_cli_rm_test.go | ||
docker_cli_rmi_test.go | ||
docker_cli_run_test.go | ||
docker_cli_run_unix_test.go | ||
docker_cli_save_load_test.go | ||
docker_cli_save_load_unix_test.go | ||
docker_cli_search_test.go | ||
docker_cli_service_test.go | ||
docker_cli_start_test.go | ||
docker_cli_start_volume_driver_unix_test.go | ||
docker_cli_stats_test.go | ||
docker_cli_tag_test.go | ||
docker_cli_top_test.go | ||
docker_cli_version_test.go | ||
docker_cli_wait_test.go | ||
docker_test_vars.go | ||
docker_test_vars_cli.go | ||
docker_test_vars_daemon.go | ||
docker_utils.go | ||
registry.go | ||
requirements.go | ||
requirements_unix.go | ||
test_vars_exec.go | ||
test_vars_noexec.go | ||
test_vars_unix.go | ||
test_vars_windows.go | ||
trust_server.go | ||
utils.go |