From 4f0d95fa6ee7f865597c03b9e63702cdcb0f7067 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Mon, 5 Feb 2018 16:05:59 -0500 Subject: [PATCH] Add canonical import comment Signed-off-by: Daniel Nephin --- api/common.go | 2 +- api/common_unix.go | 2 +- api/common_windows.go | 2 +- api/server/backend/build/backend.go | 2 +- api/server/backend/build/tag.go | 2 +- api/server/httputils/decoder.go | 2 +- api/server/httputils/errors.go | 2 +- api/server/httputils/form.go | 2 +- api/server/httputils/form_test.go | 2 +- api/server/httputils/httputils.go | 2 +- api/server/httputils/httputils_test.go | 2 +- api/server/httputils/httputils_write_json.go | 2 +- api/server/httputils/write_log_stream.go | 2 +- api/server/middleware.go | 2 +- api/server/middleware/cors.go | 2 +- api/server/middleware/debug.go | 2 +- api/server/middleware/debug_test.go | 2 +- api/server/middleware/experimental.go | 2 +- api/server/middleware/middleware.go | 2 +- api/server/middleware/version.go | 2 +- api/server/middleware/version_test.go | 2 +- api/server/router/build/backend.go | 2 +- api/server/router/build/build.go | 2 +- api/server/router/build/build_routes.go | 2 +- api/server/router/checkpoint/backend.go | 2 +- api/server/router/checkpoint/checkpoint.go | 2 +- api/server/router/checkpoint/checkpoint_routes.go | 2 +- api/server/router/container/backend.go | 2 +- api/server/router/container/container.go | 2 +- api/server/router/container/container_routes.go | 2 +- api/server/router/container/copy.go | 2 +- api/server/router/container/exec.go | 2 +- api/server/router/container/inspect.go | 2 +- api/server/router/debug/debug.go | 2 +- api/server/router/debug/debug_routes.go | 2 +- api/server/router/distribution/backend.go | 2 +- api/server/router/distribution/distribution.go | 2 +- api/server/router/distribution/distribution_routes.go | 2 +- api/server/router/experimental.go | 2 +- api/server/router/image/backend.go | 2 +- api/server/router/image/image.go | 2 +- api/server/router/image/image_routes.go | 2 +- api/server/router/local.go | 2 +- api/server/router/network/backend.go | 2 +- api/server/router/network/filter.go | 2 +- api/server/router/network/filter_test.go | 2 +- api/server/router/network/network.go | 2 +- api/server/router/network/network_routes.go | 2 +- api/server/router/plugin/backend.go | 2 +- api/server/router/plugin/plugin.go | 2 +- api/server/router/plugin/plugin_routes.go | 2 +- api/server/router/router.go | 2 +- api/server/router/session/backend.go | 2 +- api/server/router/session/session.go | 2 +- api/server/router/session/session_routes.go | 2 +- api/server/router/swarm/backend.go | 2 +- api/server/router/swarm/cluster.go | 2 +- api/server/router/swarm/cluster_routes.go | 2 +- api/server/router/swarm/helpers.go | 2 +- api/server/router/system/backend.go | 2 +- api/server/router/system/system.go | 2 +- api/server/router/system/system_routes.go | 2 +- api/server/router/volume/backend.go | 2 +- api/server/router/volume/volume.go | 2 +- api/server/router/volume/volume_routes.go | 2 +- api/server/router_swapper.go | 2 +- api/server/server.go | 2 +- api/server/server_test.go | 2 +- api/types/auth.go | 2 +- api/types/backend/backend.go | 2 +- api/types/backend/build.go | 2 +- api/types/blkiodev/blkio.go | 2 +- api/types/client.go | 2 +- api/types/configs.go | 2 +- api/types/container/config.go | 2 +- api/types/container/host_config.go | 2 +- api/types/container/hostconfig_unix.go | 2 +- api/types/container/hostconfig_windows.go | 2 +- api/types/container/waitcondition.go | 2 +- api/types/events/events.go | 2 +- api/types/filters/example_test.go | 2 +- api/types/filters/parse.go | 2 +- api/types/filters/parse_test.go | 2 +- api/types/mount/mount.go | 2 +- api/types/network/network.go | 2 +- api/types/plugin_responses.go | 2 +- api/types/plugins/logdriver/gen.go | 2 +- api/types/plugins/logdriver/io.go | 2 +- api/types/registry/authenticate.go | 2 +- api/types/registry/registry.go | 2 +- api/types/seccomp.go | 2 +- api/types/stats.go | 2 +- api/types/strslice/strslice.go | 2 +- api/types/strslice/strslice_test.go | 2 +- api/types/swarm/common.go | 2 +- api/types/swarm/config.go | 2 +- api/types/swarm/container.go | 2 +- api/types/swarm/network.go | 2 +- api/types/swarm/node.go | 2 +- api/types/swarm/runtime.go | 2 +- api/types/swarm/runtime/gen.go | 2 +- api/types/swarm/secret.go | 2 +- api/types/swarm/service.go | 2 +- api/types/swarm/swarm.go | 2 +- api/types/swarm/task.go | 2 +- api/types/time/duration_convert.go | 2 +- api/types/time/duration_convert_test.go | 2 +- api/types/time/timestamp.go | 2 +- api/types/time/timestamp_test.go | 2 +- api/types/types.go | 2 +- api/types/versions/compare.go | 2 +- api/types/versions/compare_test.go | 2 +- api/types/versions/v1p19/types.go | 2 +- api/types/versions/v1p20/types.go | 2 +- api/types/volume/volumes_create.go | 2 +- api/types/volume/volumes_list.go | 2 +- builder/builder.go | 2 +- builder/dockerfile/buildargs.go | 2 +- builder/dockerfile/buildargs_test.go | 2 +- builder/dockerfile/builder.go | 2 +- builder/dockerfile/builder_test.go | 2 +- builder/dockerfile/builder_unix.go | 2 +- builder/dockerfile/builder_windows.go | 2 +- builder/dockerfile/clientsession.go | 2 +- builder/dockerfile/command/command.go | 2 +- builder/dockerfile/containerbackend.go | 2 +- builder/dockerfile/copy.go | 2 +- builder/dockerfile/copy_test.go | 2 +- builder/dockerfile/copy_unix.go | 2 +- builder/dockerfile/copy_windows.go | 2 +- builder/dockerfile/dispatchers.go | 2 +- builder/dockerfile/dispatchers_test.go | 2 +- builder/dockerfile/dispatchers_unix.go | 2 +- builder/dockerfile/dispatchers_unix_test.go | 2 +- builder/dockerfile/dispatchers_windows.go | 2 +- builder/dockerfile/dispatchers_windows_test.go | 2 +- builder/dockerfile/evaluator.go | 2 +- builder/dockerfile/evaluator_test.go | 2 +- builder/dockerfile/imagecontext.go | 2 +- builder/dockerfile/imageprobe.go | 2 +- builder/dockerfile/instructions/bflag.go | 2 +- builder/dockerfile/instructions/bflag_test.go | 2 +- builder/dockerfile/instructions/commands.go | 2 +- builder/dockerfile/instructions/errors_unix.go | 2 +- builder/dockerfile/instructions/errors_windows.go | 2 +- builder/dockerfile/instructions/parse.go | 2 +- builder/dockerfile/instructions/parse_test.go | 2 +- builder/dockerfile/instructions/support.go | 2 +- builder/dockerfile/instructions/support_test.go | 2 +- builder/dockerfile/internals.go | 2 +- builder/dockerfile/internals_linux.go | 2 +- builder/dockerfile/internals_linux_test.go | 2 +- builder/dockerfile/internals_test.go | 2 +- builder/dockerfile/internals_windows.go | 2 +- builder/dockerfile/internals_windows_test.go | 2 +- builder/dockerfile/metrics.go | 2 +- builder/dockerfile/mockbackend_test.go | 2 +- builder/dockerfile/parser/json_test.go | 2 +- builder/dockerfile/parser/line_parsers.go | 2 +- builder/dockerfile/parser/line_parsers_test.go | 2 +- builder/dockerfile/parser/parser.go | 2 +- builder/dockerfile/parser/parser_test.go | 2 +- builder/dockerfile/parser/split_command.go | 2 +- builder/dockerfile/shell/equal_env_unix.go | 2 +- builder/dockerfile/shell/equal_env_windows.go | 2 +- builder/dockerfile/shell/lex.go | 2 +- builder/dockerfile/shell/lex_test.go | 2 +- builder/dockerfile/utils_test.go | 2 +- builder/dockerignore/dockerignore.go | 2 +- builder/dockerignore/dockerignore_test.go | 2 +- builder/fscache/fscache.go | 2 +- builder/fscache/fscache_test.go | 2 +- builder/fscache/naivedriver.go | 2 +- builder/remotecontext/archive.go | 2 +- builder/remotecontext/detect.go | 2 +- builder/remotecontext/detect_test.go | 2 +- builder/remotecontext/filehash.go | 2 +- builder/remotecontext/generate.go | 2 +- builder/remotecontext/git.go | 2 +- builder/remotecontext/git/gitutils.go | 2 +- builder/remotecontext/git/gitutils_test.go | 2 +- builder/remotecontext/lazycontext.go | 2 +- builder/remotecontext/mimetype.go | 2 +- builder/remotecontext/mimetype_test.go | 2 +- builder/remotecontext/remote.go | 2 +- builder/remotecontext/remote_test.go | 2 +- builder/remotecontext/tarsum.go | 2 +- builder/remotecontext/tarsum_test.go | 2 +- builder/remotecontext/utils_test.go | 2 +- cli/cobra.go | 2 +- cli/config/configdir.go | 2 +- cli/debug/debug.go | 2 +- cli/debug/debug_test.go | 2 +- cli/error.go | 2 +- cli/required.go | 2 +- client/build_prune.go | 2 +- client/checkpoint_create.go | 2 +- client/checkpoint_create_test.go | 2 +- client/checkpoint_delete.go | 2 +- client/checkpoint_delete_test.go | 2 +- client/checkpoint_list.go | 2 +- client/checkpoint_list_test.go | 2 +- client/client.go | 2 +- client/client_mock_test.go | 2 +- client/client_test.go | 2 +- client/client_unix.go | 2 +- client/client_windows.go | 2 +- client/config_create.go | 2 +- client/config_create_test.go | 2 +- client/config_inspect.go | 2 +- client/config_inspect_test.go | 2 +- client/config_list.go | 2 +- client/config_list_test.go | 2 +- client/config_remove.go | 2 +- client/config_remove_test.go | 2 +- client/config_update.go | 2 +- client/config_update_test.go | 2 +- client/container_attach.go | 2 +- client/container_commit.go | 2 +- client/container_commit_test.go | 2 +- client/container_copy.go | 2 +- client/container_copy_test.go | 2 +- client/container_create.go | 2 +- client/container_create_test.go | 2 +- client/container_diff.go | 2 +- client/container_diff_test.go | 2 +- client/container_exec.go | 2 +- client/container_exec_test.go | 2 +- client/container_export.go | 2 +- client/container_export_test.go | 2 +- client/container_inspect.go | 2 +- client/container_inspect_test.go | 2 +- client/container_kill.go | 2 +- client/container_kill_test.go | 2 +- client/container_list.go | 2 +- client/container_list_test.go | 2 +- client/container_logs.go | 2 +- client/container_logs_test.go | 2 +- client/container_pause.go | 2 +- client/container_pause_test.go | 2 +- client/container_prune.go | 2 +- client/container_prune_test.go | 2 +- client/container_remove.go | 2 +- client/container_remove_test.go | 2 +- client/container_rename.go | 2 +- client/container_rename_test.go | 2 +- client/container_resize.go | 2 +- client/container_resize_test.go | 2 +- client/container_restart.go | 2 +- client/container_restart_test.go | 2 +- client/container_start.go | 2 +- client/container_start_test.go | 2 +- client/container_stats.go | 2 +- client/container_stats_test.go | 2 +- client/container_stop.go | 2 +- client/container_stop_test.go | 2 +- client/container_top.go | 2 +- client/container_top_test.go | 2 +- client/container_unpause.go | 2 +- client/container_unpause_test.go | 2 +- client/container_update.go | 2 +- client/container_update_test.go | 2 +- client/container_wait.go | 2 +- client/container_wait_test.go | 2 +- client/disk_usage.go | 2 +- client/disk_usage_test.go | 2 +- client/distribution_inspect.go | 2 +- client/distribution_inspect_test.go | 2 +- client/errors.go | 2 +- client/events.go | 2 +- client/events_test.go | 2 +- client/hijack.go | 2 +- client/image_build.go | 2 +- client/image_build_test.go | 2 +- client/image_create.go | 2 +- client/image_create_test.go | 2 +- client/image_history.go | 2 +- client/image_history_test.go | 2 +- client/image_import.go | 2 +- client/image_import_test.go | 2 +- client/image_inspect.go | 2 +- client/image_inspect_test.go | 2 +- client/image_list.go | 2 +- client/image_list_test.go | 2 +- client/image_load.go | 2 +- client/image_load_test.go | 2 +- client/image_prune.go | 2 +- client/image_prune_test.go | 2 +- client/image_pull.go | 2 +- client/image_pull_test.go | 2 +- client/image_push.go | 2 +- client/image_push_test.go | 2 +- client/image_remove.go | 2 +- client/image_remove_test.go | 2 +- client/image_save.go | 2 +- client/image_save_test.go | 2 +- client/image_search.go | 2 +- client/image_search_test.go | 2 +- client/image_tag.go | 2 +- client/image_tag_test.go | 2 +- client/info.go | 2 +- client/info_test.go | 2 +- client/interface.go | 2 +- client/interface_experimental.go | 2 +- client/interface_stable.go | 2 +- client/login.go | 2 +- client/network_connect.go | 2 +- client/network_connect_test.go | 2 +- client/network_create.go | 2 +- client/network_create_test.go | 2 +- client/network_disconnect.go | 2 +- client/network_disconnect_test.go | 2 +- client/network_inspect.go | 2 +- client/network_inspect_test.go | 2 +- client/network_list.go | 2 +- client/network_list_test.go | 2 +- client/network_prune.go | 2 +- client/network_prune_test.go | 2 +- client/network_remove.go | 2 +- client/network_remove_test.go | 2 +- client/node_inspect.go | 2 +- client/node_inspect_test.go | 2 +- client/node_list.go | 2 +- client/node_list_test.go | 2 +- client/node_remove.go | 2 +- client/node_remove_test.go | 2 +- client/node_update.go | 2 +- client/node_update_test.go | 2 +- client/ping.go | 2 +- client/ping_test.go | 2 +- client/plugin_create.go | 2 +- client/plugin_disable.go | 2 +- client/plugin_disable_test.go | 2 +- client/plugin_enable.go | 2 +- client/plugin_enable_test.go | 2 +- client/plugin_inspect.go | 2 +- client/plugin_inspect_test.go | 2 +- client/plugin_install.go | 2 +- client/plugin_list.go | 2 +- client/plugin_list_test.go | 2 +- client/plugin_push.go | 2 +- client/plugin_push_test.go | 2 +- client/plugin_remove.go | 2 +- client/plugin_remove_test.go | 2 +- client/plugin_set.go | 2 +- client/plugin_set_test.go | 2 +- client/plugin_upgrade.go | 2 +- client/request.go | 2 +- client/request_test.go | 2 +- client/secret_create.go | 2 +- client/secret_create_test.go | 2 +- client/secret_inspect.go | 2 +- client/secret_inspect_test.go | 2 +- client/secret_list.go | 2 +- client/secret_list_test.go | 2 +- client/secret_remove.go | 2 +- client/secret_remove_test.go | 2 +- client/secret_update.go | 2 +- client/secret_update_test.go | 2 +- client/service_create.go | 2 +- client/service_create_test.go | 2 +- client/service_inspect.go | 2 +- client/service_inspect_test.go | 2 +- client/service_list.go | 2 +- client/service_list_test.go | 2 +- client/service_logs.go | 2 +- client/service_logs_test.go | 2 +- client/service_remove.go | 2 +- client/service_remove_test.go | 2 +- client/service_update.go | 2 +- client/service_update_test.go | 2 +- client/session.go | 2 +- client/swarm_get_unlock_key.go | 2 +- client/swarm_get_unlock_key_test.go | 2 +- client/swarm_init.go | 2 +- client/swarm_init_test.go | 2 +- client/swarm_inspect.go | 2 +- client/swarm_inspect_test.go | 2 +- client/swarm_join.go | 2 +- client/swarm_join_test.go | 2 +- client/swarm_leave.go | 2 +- client/swarm_leave_test.go | 2 +- client/swarm_unlock.go | 2 +- client/swarm_unlock_test.go | 2 +- client/swarm_update.go | 2 +- client/swarm_update_test.go | 2 +- client/task_inspect.go | 2 +- client/task_inspect_test.go | 2 +- client/task_list.go | 2 +- client/task_list_test.go | 2 +- client/task_logs.go | 2 +- client/tlsconfig_clone.go | 2 +- client/tlsconfig_clone_go17.go | 2 +- client/transport.go | 2 +- client/utils.go | 2 +- client/version.go | 2 +- client/volume_create.go | 2 +- client/volume_create_test.go | 2 +- client/volume_inspect.go | 2 +- client/volume_inspect_test.go | 2 +- client/volume_list.go | 2 +- client/volume_list_test.go | 2 +- client/volume_prune.go | 2 +- client/volume_remove.go | 2 +- client/volume_remove_test.go | 2 +- cmd/dockerd/hack/malformed_host_override.go | 2 +- cmd/dockerd/hack/malformed_host_override_test.go | 2 +- container/archive.go | 2 +- container/container.go | 2 +- container/container_linux.go | 2 +- container/container_notlinux.go | 2 +- container/container_unit_test.go | 2 +- container/container_unix.go | 2 +- container/container_windows.go | 2 +- container/env.go | 2 +- container/env_test.go | 2 +- container/health.go | 2 +- container/history.go | 2 +- container/memory_store.go | 2 +- container/memory_store_test.go | 2 +- container/monitor.go | 2 +- container/mounts_unix.go | 2 +- container/mounts_windows.go | 2 +- container/state.go | 2 +- container/state_test.go | 2 +- container/store.go | 2 +- container/stream/attach.go | 2 +- container/stream/streams.go | 2 +- container/view.go | 2 +- container/view_test.go | 2 +- daemon/apparmor_default.go | 2 +- daemon/apparmor_default_unsupported.go | 2 +- daemon/archive.go | 2 +- daemon/archive_tarcopyoptions.go | 2 +- daemon/archive_tarcopyoptions_unix.go | 2 +- daemon/archive_tarcopyoptions_windows.go | 2 +- daemon/archive_unix.go | 2 +- daemon/archive_windows.go | 2 +- daemon/attach.go | 2 +- daemon/auth.go | 2 +- daemon/bindmount_unix.go | 2 +- daemon/build.go | 2 +- daemon/cache.go | 2 +- daemon/caps/utils_unix.go | 2 +- daemon/changes.go | 2 +- daemon/checkpoint.go | 2 +- daemon/cluster.go | 2 +- daemon/cluster/cluster.go | 2 +- daemon/cluster/configs.go | 2 +- daemon/cluster/controllers/plugin/controller.go | 2 +- daemon/cluster/controllers/plugin/controller_test.go | 2 +- daemon/cluster/convert/config.go | 2 +- daemon/cluster/convert/container.go | 2 +- daemon/cluster/convert/network.go | 2 +- daemon/cluster/convert/network_test.go | 2 +- daemon/cluster/convert/node.go | 2 +- daemon/cluster/convert/secret.go | 2 +- daemon/cluster/convert/service.go | 2 +- daemon/cluster/convert/service_test.go | 2 +- daemon/cluster/convert/swarm.go | 2 +- daemon/cluster/convert/task.go | 2 +- daemon/cluster/errors.go | 2 +- daemon/cluster/executor/backend.go | 2 +- daemon/cluster/executor/container/adapter.go | 2 +- daemon/cluster/executor/container/attachment.go | 2 +- daemon/cluster/executor/container/container.go | 2 +- daemon/cluster/executor/container/container_test.go | 2 +- daemon/cluster/executor/container/controller.go | 2 +- daemon/cluster/executor/container/errors.go | 2 +- daemon/cluster/executor/container/executor.go | 2 +- daemon/cluster/executor/container/health_test.go | 2 +- daemon/cluster/executor/container/validate.go | 2 +- daemon/cluster/executor/container/validate_test.go | 2 +- daemon/cluster/executor/container/validate_unix_test.go | 2 +- daemon/cluster/executor/container/validate_windows_test.go | 2 +- daemon/cluster/filters.go | 2 +- daemon/cluster/filters_test.go | 2 +- daemon/cluster/helpers.go | 2 +- daemon/cluster/listen_addr.go | 2 +- daemon/cluster/listen_addr_linux.go | 2 +- daemon/cluster/listen_addr_others.go | 2 +- daemon/cluster/networks.go | 2 +- daemon/cluster/noderunner.go | 2 +- daemon/cluster/nodes.go | 2 +- daemon/cluster/provider/network.go | 2 +- daemon/cluster/secrets.go | 2 +- daemon/cluster/services.go | 2 +- daemon/cluster/swarm.go | 2 +- daemon/cluster/tasks.go | 2 +- daemon/cluster/utils.go | 2 +- daemon/commit.go | 2 +- daemon/config/config.go | 2 +- daemon/config/config_common_unix.go | 2 +- daemon/config/config_common_unix_test.go | 2 +- daemon/config/config_test.go | 2 +- daemon/config/config_unix.go | 2 +- daemon/config/config_unix_test.go | 2 +- daemon/config/config_windows.go | 2 +- daemon/config/config_windows_test.go | 2 +- daemon/config/opts.go | 2 +- daemon/configs.go | 2 +- daemon/configs_linux.go | 2 +- daemon/configs_unsupported.go | 2 +- daemon/configs_windows.go | 2 +- daemon/container.go | 2 +- daemon/container_linux.go | 2 +- daemon/container_operations.go | 2 +- daemon/container_operations_unix.go | 2 +- daemon/container_operations_windows.go | 2 +- daemon/container_windows.go | 2 +- daemon/create.go | 2 +- daemon/create_test.go | 2 +- daemon/create_unix.go | 2 +- daemon/create_windows.go | 2 +- daemon/daemon.go | 2 +- daemon/daemon_linux.go | 2 +- daemon/daemon_linux_test.go | 2 +- daemon/daemon_test.go | 2 +- daemon/daemon_unix.go | 2 +- daemon/daemon_unix_test.go | 2 +- daemon/daemon_unsupported.go | 2 +- daemon/daemon_windows.go | 2 +- daemon/daemon_windows_test.go | 2 +- daemon/debugtrap_unix.go | 2 +- daemon/debugtrap_unsupported.go | 2 +- daemon/debugtrap_windows.go | 2 +- daemon/delete.go | 2 +- daemon/delete_test.go | 2 +- daemon/dependency.go | 2 +- daemon/discovery/discovery.go | 2 +- daemon/discovery/discovery_test.go | 2 +- daemon/disk_usage.go | 2 +- daemon/errors.go | 2 +- daemon/events.go | 2 +- daemon/events/events.go | 2 +- daemon/events/events_test.go | 2 +- daemon/events/filter.go | 2 +- daemon/events/metrics.go | 2 +- daemon/events/testutils/testutils.go | 2 +- daemon/events_test.go | 2 +- daemon/exec.go | 2 +- daemon/exec/exec.go | 2 +- daemon/exec_linux.go | 2 +- daemon/exec_windows.go | 2 +- daemon/export.go | 2 +- daemon/getsize_unix.go | 2 +- daemon/graphdriver/aufs/aufs.go | 2 +- daemon/graphdriver/aufs/aufs_test.go | 2 +- daemon/graphdriver/aufs/dirs.go | 2 +- daemon/graphdriver/aufs/mount.go | 2 +- daemon/graphdriver/aufs/mount_linux.go | 2 +- daemon/graphdriver/aufs/mount_unsupported.go | 2 +- daemon/graphdriver/btrfs/btrfs.go | 2 +- daemon/graphdriver/btrfs/btrfs_test.go | 2 +- daemon/graphdriver/btrfs/dummy_unsupported.go | 2 +- daemon/graphdriver/btrfs/version.go | 2 +- daemon/graphdriver/btrfs/version_none.go | 2 +- daemon/graphdriver/btrfs/version_test.go | 2 +- daemon/graphdriver/copy/copy.go | 2 +- daemon/graphdriver/copy/copy_test.go | 2 +- daemon/graphdriver/counter.go | 2 +- daemon/graphdriver/devmapper/device_setup.go | 2 +- daemon/graphdriver/devmapper/deviceset.go | 2 +- daemon/graphdriver/devmapper/devmapper_doc.go | 2 +- daemon/graphdriver/devmapper/devmapper_test.go | 2 +- daemon/graphdriver/devmapper/driver.go | 2 +- daemon/graphdriver/devmapper/mount.go | 2 +- daemon/graphdriver/driver.go | 2 +- daemon/graphdriver/driver_freebsd.go | 2 +- daemon/graphdriver/driver_linux.go | 2 +- daemon/graphdriver/driver_test.go | 2 +- daemon/graphdriver/driver_unsupported.go | 2 +- daemon/graphdriver/driver_windows.go | 2 +- daemon/graphdriver/errors.go | 2 +- daemon/graphdriver/fsdiff.go | 2 +- daemon/graphdriver/graphtest/graphbench_unix.go | 2 +- daemon/graphdriver/graphtest/graphtest_unix.go | 2 +- daemon/graphdriver/graphtest/graphtest_windows.go | 2 +- daemon/graphdriver/graphtest/testutil.go | 2 +- daemon/graphdriver/graphtest/testutil_unix.go | 2 +- daemon/graphdriver/lcow/lcow.go | 2 +- daemon/graphdriver/lcow/lcow_svm.go | 2 +- daemon/graphdriver/lcow/remotefs.go | 2 +- daemon/graphdriver/lcow/remotefs_file.go | 2 +- daemon/graphdriver/lcow/remotefs_filedriver.go | 2 +- daemon/graphdriver/lcow/remotefs_pathdriver.go | 2 +- daemon/graphdriver/overlay/overlay.go | 2 +- daemon/graphdriver/overlay/overlay_test.go | 2 +- daemon/graphdriver/overlay/overlay_unsupported.go | 2 +- daemon/graphdriver/overlay2/check.go | 2 +- daemon/graphdriver/overlay2/mount.go | 2 +- daemon/graphdriver/overlay2/overlay.go | 2 +- daemon/graphdriver/overlay2/overlay_test.go | 2 +- daemon/graphdriver/overlay2/overlay_unsupported.go | 2 +- daemon/graphdriver/overlay2/randomid.go | 2 +- daemon/graphdriver/overlayutils/overlayutils.go | 2 +- daemon/graphdriver/plugin.go | 2 +- daemon/graphdriver/proxy.go | 2 +- daemon/graphdriver/quota/errors.go | 2 +- daemon/graphdriver/quota/projectquota.go | 2 +- daemon/graphdriver/quota/projectquota_test.go | 2 +- daemon/graphdriver/register/register_aufs.go | 2 +- daemon/graphdriver/register/register_btrfs.go | 2 +- daemon/graphdriver/register/register_devicemapper.go | 2 +- daemon/graphdriver/register/register_overlay.go | 2 +- daemon/graphdriver/register/register_overlay2.go | 2 +- daemon/graphdriver/register/register_vfs.go | 2 +- daemon/graphdriver/register/register_windows.go | 2 +- daemon/graphdriver/register/register_zfs.go | 2 +- daemon/graphdriver/vfs/copy_linux.go | 2 +- daemon/graphdriver/vfs/copy_unsupported.go | 2 +- daemon/graphdriver/vfs/driver.go | 2 +- daemon/graphdriver/vfs/quota_linux.go | 2 +- daemon/graphdriver/vfs/quota_unsupported.go | 2 +- daemon/graphdriver/vfs/vfs_test.go | 2 +- daemon/graphdriver/windows/windows.go | 2 +- daemon/graphdriver/zfs/zfs.go | 2 +- daemon/graphdriver/zfs/zfs_freebsd.go | 2 +- daemon/graphdriver/zfs/zfs_linux.go | 2 +- daemon/graphdriver/zfs/zfs_test.go | 2 +- daemon/graphdriver/zfs/zfs_unsupported.go | 2 +- daemon/health.go | 2 +- daemon/health_test.go | 2 +- daemon/image.go | 2 +- daemon/image_delete.go | 2 +- daemon/image_exporter.go | 2 +- daemon/image_history.go | 2 +- daemon/image_inspect.go | 2 +- daemon/image_pull.go | 2 +- daemon/image_push.go | 2 +- daemon/image_tag.go | 2 +- daemon/images.go | 2 +- daemon/import.go | 2 +- daemon/info.go | 2 +- daemon/info_unix.go | 2 +- daemon/info_unix_test.go | 2 +- daemon/info_windows.go | 2 +- daemon/initlayer/setup_unix.go | 2 +- daemon/initlayer/setup_windows.go | 2 +- daemon/inspect.go | 2 +- daemon/inspect_linux.go | 2 +- daemon/inspect_windows.go | 2 +- daemon/keys.go | 2 +- daemon/keys_unsupported.go | 2 +- daemon/kill.go | 2 +- daemon/links.go | 2 +- daemon/links/links.go | 2 +- daemon/links/links_test.go | 2 +- daemon/list.go | 2 +- daemon/list_unix.go | 2 +- daemon/list_windows.go | 2 +- daemon/listeners/group_unix.go | 2 +- daemon/listeners/listeners_linux.go | 2 +- daemon/listeners/listeners_windows.go | 2 +- daemon/logdrivers_linux.go | 2 +- daemon/logdrivers_windows.go | 2 +- daemon/logger/adapter.go | 2 +- daemon/logger/adapter_test.go | 2 +- daemon/logger/awslogs/cloudwatchlogs.go | 2 +- daemon/logger/awslogs/cloudwatchlogs_test.go | 2 +- daemon/logger/awslogs/cwlogsiface_mock_test.go | 2 +- daemon/logger/copier.go | 2 +- daemon/logger/copier_test.go | 2 +- daemon/logger/etwlogs/etwlogs_windows.go | 2 +- daemon/logger/factory.go | 2 +- daemon/logger/fluentd/fluentd.go | 2 +- daemon/logger/gcplogs/gcplogging.go | 2 +- daemon/logger/gcplogs/gcplogging_linux.go | 2 +- daemon/logger/gcplogs/gcplogging_others.go | 2 +- daemon/logger/gelf/gelf.go | 2 +- daemon/logger/gelf/gelf_test.go | 2 +- daemon/logger/journald/journald.go | 2 +- daemon/logger/journald/journald_test.go | 2 +- daemon/logger/journald/journald_unsupported.go | 2 +- daemon/logger/journald/read.go | 2 +- daemon/logger/journald/read_native.go | 2 +- daemon/logger/journald/read_native_compat.go | 2 +- daemon/logger/journald/read_unsupported.go | 2 +- daemon/logger/jsonfilelog/jsonfilelog.go | 2 +- daemon/logger/jsonfilelog/jsonfilelog_test.go | 2 +- daemon/logger/jsonfilelog/jsonlog/jsonlog.go | 2 +- daemon/logger/jsonfilelog/jsonlog/jsonlogbytes.go | 2 +- daemon/logger/jsonfilelog/jsonlog/jsonlogbytes_test.go | 2 +- daemon/logger/jsonfilelog/jsonlog/time_marshalling.go | 2 +- daemon/logger/jsonfilelog/jsonlog/time_marshalling_test.go | 2 +- daemon/logger/jsonfilelog/read.go | 2 +- daemon/logger/jsonfilelog/read_test.go | 2 +- daemon/logger/logentries/logentries.go | 2 +- daemon/logger/logger.go | 2 +- daemon/logger/logger_test.go | 2 +- daemon/logger/loggerutils/log_tag.go | 2 +- daemon/logger/loggerutils/log_tag_test.go | 2 +- daemon/logger/loggerutils/logfile.go | 2 +- daemon/logger/loggerutils/multireader/multireader.go | 2 +- daemon/logger/loggerutils/multireader/multireader_test.go | 2 +- daemon/logger/loginfo.go | 2 +- daemon/logger/plugin.go | 2 +- daemon/logger/plugin_unix.go | 2 +- daemon/logger/plugin_unsupported.go | 2 +- daemon/logger/proxy.go | 2 +- daemon/logger/ring.go | 2 +- daemon/logger/ring_test.go | 2 +- daemon/logger/splunk/splunk.go | 2 +- daemon/logger/splunk/splunk_test.go | 2 +- daemon/logger/splunk/splunkhecmock_test.go | 2 +- daemon/logger/syslog/syslog.go | 2 +- daemon/logger/syslog/syslog_test.go | 2 +- daemon/logger/templates/templates.go | 2 +- daemon/logger/templates/templates_test.go | 2 +- daemon/logs.go | 2 +- daemon/logs_test.go | 2 +- daemon/metrics.go | 2 +- daemon/metrics_unix.go | 2 +- daemon/metrics_unsupported.go | 2 +- daemon/monitor.go | 2 +- daemon/monitor_linux.go | 2 +- daemon/monitor_windows.go | 2 +- daemon/mounts.go | 2 +- daemon/names.go | 2 +- daemon/names/names.go | 2 +- daemon/network.go | 2 +- daemon/network/settings.go | 2 +- daemon/oci_linux.go | 2 +- daemon/oci_linux_test.go | 2 +- daemon/oci_windows.go | 2 +- daemon/pause.go | 2 +- daemon/prune.go | 2 +- daemon/reload.go | 2 +- daemon/reload_test.go | 2 +- daemon/reload_unix.go | 2 +- daemon/reload_windows.go | 2 +- daemon/rename.go | 2 +- daemon/resize.go | 2 +- daemon/restart.go | 2 +- daemon/search.go | 2 +- daemon/search_test.go | 2 +- daemon/seccomp_disabled.go | 2 +- daemon/seccomp_linux.go | 2 +- daemon/seccomp_unsupported.go | 2 +- daemon/secrets.go | 2 +- daemon/secrets_linux.go | 2 +- daemon/secrets_unsupported.go | 2 +- daemon/secrets_windows.go | 2 +- daemon/selinux_linux.go | 2 +- daemon/selinux_unsupported.go | 2 +- daemon/start.go | 2 +- daemon/start_unix.go | 2 +- daemon/start_windows.go | 2 +- daemon/stats.go | 2 +- daemon/stats/collector.go | 2 +- daemon/stats/collector_unix.go | 2 +- daemon/stats/collector_windows.go | 2 +- daemon/stats/types.go | 2 +- daemon/stats_collector.go | 2 +- daemon/stats_unix.go | 2 +- daemon/stats_windows.go | 2 +- daemon/stop.go | 2 +- daemon/top_unix.go | 2 +- daemon/top_unix_test.go | 2 +- daemon/top_windows.go | 2 +- daemon/trustkey.go | 2 +- daemon/trustkey_test.go | 2 +- daemon/unpause.go | 2 +- daemon/update.go | 2 +- daemon/update_linux.go | 2 +- daemon/update_windows.go | 2 +- daemon/volumes.go | 2 +- daemon/volumes_unit_test.go | 2 +- daemon/volumes_unix.go | 2 +- daemon/volumes_unix_test.go | 2 +- daemon/volumes_windows.go | 2 +- daemon/wait.go | 2 +- daemon/workdir.go | 2 +- distribution/config.go | 2 +- distribution/errors.go | 2 +- distribution/errors_test.go | 2 +- distribution/metadata/metadata.go | 2 +- distribution/metadata/v1_id_service.go | 2 +- distribution/metadata/v1_id_service_test.go | 2 +- distribution/metadata/v2_metadata_service.go | 2 +- distribution/metadata/v2_metadata_service_test.go | 2 +- distribution/pull.go | 2 +- distribution/pull_v1.go | 2 +- distribution/pull_v2.go | 2 +- distribution/pull_v2_test.go | 2 +- distribution/pull_v2_unix.go | 2 +- distribution/pull_v2_windows.go | 2 +- distribution/push.go | 2 +- distribution/push_v1.go | 2 +- distribution/push_v2.go | 2 +- distribution/push_v2_test.go | 2 +- distribution/registry.go | 2 +- distribution/registry_unit_test.go | 2 +- distribution/utils/progress.go | 2 +- distribution/xfer/download.go | 2 +- distribution/xfer/download_test.go | 2 +- distribution/xfer/transfer.go | 2 +- distribution/xfer/transfer_test.go | 2 +- distribution/xfer/upload.go | 2 +- distribution/xfer/upload_test.go | 2 +- dockerversion/useragent.go | 2 +- dockerversion/version_lib.go | 2 +- errdefs/defs.go | 2 +- errdefs/doc.go | 2 +- errdefs/helpers.go | 2 +- errdefs/helpers_test.go | 2 +- errdefs/is.go | 2 +- image/cache/cache.go | 2 +- image/cache/compare.go | 2 +- image/cache/compare_test.go | 2 +- image/fs.go | 2 +- image/fs_test.go | 2 +- image/image.go | 2 +- image/image_test.go | 2 +- image/rootfs.go | 2 +- image/store.go | 2 +- image/store_test.go | 2 +- image/tarexport/load.go | 2 +- image/tarexport/save.go | 2 +- image/tarexport/tarexport.go | 2 +- image/v1/imagev1.go | 2 +- image/v1/imagev1_test.go | 2 +- integration-cli/checker/checker.go | 2 +- integration-cli/cli/build/build.go | 2 +- integration-cli/cli/build/fakecontext/context.go | 2 +- integration-cli/cli/build/fakegit/fakegit.go | 2 +- integration-cli/cli/build/fakestorage/fixtures.go | 2 +- integration-cli/cli/build/fakestorage/storage.go | 2 +- integration-cli/cli/cli.go | 2 +- integration-cli/daemon/daemon.go | 2 +- integration-cli/daemon/daemon_swarm.go | 2 +- integration-cli/daemon/daemon_unix.go | 2 +- integration-cli/daemon/daemon_windows.go | 2 +- integration-cli/environment/environment.go | 2 +- integration-cli/fixtures/load/frozen.go | 2 +- integration-cli/fixtures/plugin/plugin.go | 2 +- integration-cli/registry/registry.go | 2 +- integration-cli/registry/registry_mock.go | 2 +- integration-cli/registry/requirement.go | 2 +- integration-cli/request/npipe.go | 2 +- integration-cli/request/npipe_windows.go | 2 +- integration-cli/request/request.go | 2 +- integration-cli/requirement/requirement.go | 2 +- integration/build/build_test.go | 2 +- integration/build/main_test.go | 2 +- integration/container/create_test.go | 2 +- integration/container/exec_test.go | 2 +- integration/container/health_test.go | 2 +- integration/container/links_linux_test.go | 2 +- integration/container/main_test.go | 2 +- integration/container/mounts_linux_test.go | 2 +- integration/container/ps_test.go | 2 +- integration/container/rename_test.go | 2 +- integration/container/resize_test.go | 2 +- integration/container/restart_test.go | 2 +- integration/container/stats_test.go | 2 +- integration/container/stop_test.go | 2 +- integration/container/update_linux_test.go | 2 +- integration/doc.go | 2 +- integration/image/commit_test.go | 2 +- integration/image/import_test.go | 2 +- integration/image/main_test.go | 2 +- integration/network/delete_test.go | 2 +- integration/network/inspect_test.go | 2 +- integration/network/main_test.go | 2 +- integration/plugin/authz/authz_plugin_test.go | 2 +- integration/plugin/authz/authz_plugin_v2_test.go | 2 +- integration/plugin/authz/main_test.go | 2 +- integration/plugin/pkg_test.go | 2 +- integration/service/create_test.go | 2 +- integration/service/inspect_test.go | 2 +- integration/service/main_test.go | 2 +- integration/service/network_test.go | 2 +- integration/system/event_test.go | 2 +- integration/system/info_linux_test.go | 2 +- integration/system/login_test.go | 2 +- integration/system/main_test.go | 2 +- integration/system/version_test.go | 2 +- integration/util/request/client.go | 2 +- integration/util/requirement/requirement.go | 2 +- internal/test/environment/clean.go | 2 +- internal/test/environment/environment.go | 2 +- internal/test/environment/protect.go | 2 +- internal/testutil/helpers.go | 2 +- internal/testutil/stringutils.go | 2 +- internal/testutil/stringutils_test.go | 2 +- layer/empty.go | 2 +- layer/empty_test.go | 2 +- layer/filestore.go | 2 +- layer/filestore_test.go | 2 +- layer/filestore_unix.go | 2 +- layer/filestore_windows.go | 2 +- layer/layer.go | 2 +- layer/layer_store.go | 2 +- layer/layer_store_windows.go | 2 +- layer/layer_test.go | 2 +- layer/layer_unix.go | 2 +- layer/layer_unix_test.go | 2 +- layer/layer_windows.go | 2 +- layer/migration.go | 2 +- layer/migration_test.go | 2 +- layer/mount_test.go | 2 +- layer/mounted_layer.go | 2 +- layer/ro_layer.go | 2 +- layer/ro_layer_windows.go | 2 +- libcontainerd/client_daemon.go | 2 +- libcontainerd/client_daemon_linux.go | 2 +- libcontainerd/client_daemon_windows.go | 2 +- libcontainerd/client_local_windows.go | 2 +- libcontainerd/errors.go | 2 +- libcontainerd/process_windows.go | 2 +- libcontainerd/queue.go | 2 +- libcontainerd/queue_test.go | 2 +- libcontainerd/remote_daemon.go | 2 +- libcontainerd/remote_daemon_linux.go | 2 +- libcontainerd/remote_daemon_options.go | 2 +- libcontainerd/remote_daemon_options_linux.go | 2 +- libcontainerd/remote_daemon_windows.go | 2 +- libcontainerd/remote_local.go | 2 +- libcontainerd/types.go | 2 +- libcontainerd/types_linux.go | 2 +- libcontainerd/types_windows.go | 2 +- libcontainerd/utils_linux.go | 2 +- libcontainerd/utils_windows.go | 2 +- libcontainerd/utils_windows_test.go | 2 +- migrate/v1/migratev1.go | 2 +- migrate/v1/migratev1_test.go | 2 +- oci/defaults.go | 2 +- oci/devices_linux.go | 2 +- oci/devices_unsupported.go | 2 +- oci/namespaces.go | 2 +- opts/env.go | 2 +- opts/env_test.go | 2 +- opts/hosts.go | 2 +- opts/hosts_test.go | 2 +- opts/hosts_unix.go | 2 +- opts/hosts_windows.go | 2 +- opts/ip.go | 2 +- opts/ip_test.go | 2 +- opts/opts.go | 2 +- opts/opts_test.go | 2 +- opts/opts_unix.go | 2 +- opts/opts_windows.go | 2 +- opts/quotedstring.go | 2 +- opts/quotedstring_test.go | 2 +- opts/runtime.go | 2 +- opts/ulimit.go | 2 +- opts/ulimit_test.go | 2 +- pkg/aaparser/aaparser.go | 2 +- pkg/aaparser/aaparser_test.go | 2 +- pkg/archive/archive.go | 2 +- pkg/archive/archive_linux.go | 2 +- pkg/archive/archive_linux_test.go | 2 +- pkg/archive/archive_other.go | 2 +- pkg/archive/archive_test.go | 2 +- pkg/archive/archive_unix.go | 2 +- pkg/archive/archive_unix_test.go | 2 +- pkg/archive/archive_windows.go | 2 +- pkg/archive/archive_windows_test.go | 2 +- pkg/archive/changes.go | 2 +- pkg/archive/changes_linux.go | 2 +- pkg/archive/changes_other.go | 2 +- pkg/archive/changes_posix_test.go | 2 +- pkg/archive/changes_test.go | 2 +- pkg/archive/changes_unix.go | 2 +- pkg/archive/changes_windows.go | 2 +- pkg/archive/copy.go | 2 +- pkg/archive/copy_unix.go | 2 +- pkg/archive/copy_unix_test.go | 2 +- pkg/archive/copy_windows.go | 2 +- pkg/archive/diff.go | 2 +- pkg/archive/diff_test.go | 2 +- pkg/archive/time_linux.go | 2 +- pkg/archive/time_unsupported.go | 2 +- pkg/archive/utils_test.go | 2 +- pkg/archive/whiteouts.go | 2 +- pkg/archive/wrap.go | 2 +- pkg/archive/wrap_test.go | 2 +- pkg/authorization/api.go | 2 +- pkg/authorization/api_test.go | 2 +- pkg/authorization/authz.go | 2 +- pkg/authorization/authz_unix_test.go | 2 +- pkg/authorization/middleware.go | 2 +- pkg/authorization/middleware_test.go | 2 +- pkg/authorization/middleware_unix_test.go | 2 +- pkg/authorization/plugin.go | 2 +- pkg/authorization/response.go | 2 +- pkg/broadcaster/unbuffered.go | 2 +- pkg/broadcaster/unbuffered_test.go | 2 +- pkg/chrootarchive/archive.go | 2 +- pkg/chrootarchive/archive_test.go | 2 +- pkg/chrootarchive/archive_unix.go | 2 +- pkg/chrootarchive/archive_windows.go | 2 +- pkg/chrootarchive/chroot_linux.go | 2 +- pkg/chrootarchive/chroot_unix.go | 2 +- pkg/chrootarchive/diff.go | 2 +- pkg/chrootarchive/diff_unix.go | 2 +- pkg/chrootarchive/diff_windows.go | 2 +- pkg/chrootarchive/init_unix.go | 2 +- pkg/chrootarchive/init_windows.go | 2 +- pkg/containerfs/archiver.go | 2 +- pkg/containerfs/containerfs.go | 2 +- pkg/containerfs/containerfs_unix.go | 2 +- pkg/containerfs/containerfs_windows.go | 2 +- pkg/devicemapper/devmapper.go | 2 +- pkg/devicemapper/devmapper_log.go | 2 +- pkg/devicemapper/devmapper_wrapper.go | 2 +- pkg/devicemapper/devmapper_wrapper_deferred_remove.go | 2 +- pkg/devicemapper/devmapper_wrapper_dynamic.go | 2 +- pkg/devicemapper/devmapper_wrapper_no_deferred_remove.go | 2 +- pkg/devicemapper/ioctl.go | 2 +- pkg/devicemapper/log.go | 2 +- pkg/directory/directory.go | 2 +- pkg/directory/directory_test.go | 2 +- pkg/directory/directory_unix.go | 2 +- pkg/directory/directory_windows.go | 2 +- pkg/discovery/backends.go | 2 +- pkg/discovery/discovery.go | 2 +- pkg/discovery/discovery_test.go | 2 +- pkg/discovery/entry.go | 2 +- pkg/discovery/file/file.go | 2 +- pkg/discovery/file/file_test.go | 2 +- pkg/discovery/generator.go | 2 +- pkg/discovery/generator_test.go | 2 +- pkg/discovery/kv/kv.go | 2 +- pkg/discovery/kv/kv_test.go | 2 +- pkg/discovery/memory/memory.go | 2 +- pkg/discovery/memory/memory_test.go | 2 +- pkg/discovery/nodes/nodes.go | 2 +- pkg/discovery/nodes/nodes_test.go | 2 +- pkg/dmesg/dmesg_linux.go | 2 +- pkg/dmesg/dmesg_linux_test.go | 2 +- pkg/filenotify/filenotify.go | 2 +- pkg/filenotify/fsnotify.go | 2 +- pkg/filenotify/poller.go | 2 +- pkg/filenotify/poller_test.go | 2 +- pkg/fileutils/fileutils.go | 2 +- pkg/fileutils/fileutils_darwin.go | 2 +- pkg/fileutils/fileutils_test.go | 2 +- pkg/fileutils/fileutils_unix.go | 2 +- pkg/fileutils/fileutils_windows.go | 2 +- pkg/fsutils/fsutils_linux.go | 2 +- pkg/fsutils/fsutils_linux_test.go | 2 +- pkg/homedir/homedir_linux.go | 2 +- pkg/homedir/homedir_others.go | 2 +- pkg/homedir/homedir_test.go | 2 +- pkg/homedir/homedir_unix.go | 2 +- pkg/homedir/homedir_windows.go | 2 +- pkg/idtools/idtools.go | 2 +- pkg/idtools/idtools_unix.go | 2 +- pkg/idtools/idtools_unix_test.go | 2 +- pkg/idtools/idtools_windows.go | 2 +- pkg/idtools/usergroupadd_linux.go | 2 +- pkg/idtools/usergroupadd_unsupported.go | 2 +- pkg/idtools/utils_unix.go | 2 +- pkg/ioutils/buffer.go | 2 +- pkg/ioutils/buffer_test.go | 2 +- pkg/ioutils/bytespipe.go | 2 +- pkg/ioutils/bytespipe_test.go | 2 +- pkg/ioutils/fswriters.go | 2 +- pkg/ioutils/fswriters_test.go | 2 +- pkg/ioutils/readers.go | 2 +- pkg/ioutils/readers_test.go | 2 +- pkg/ioutils/temp_unix.go | 2 +- pkg/ioutils/temp_windows.go | 2 +- pkg/ioutils/writeflusher.go | 2 +- pkg/ioutils/writers.go | 2 +- pkg/ioutils/writers_test.go | 2 +- pkg/jsonmessage/jsonmessage.go | 2 +- pkg/jsonmessage/jsonmessage_test.go | 2 +- pkg/locker/locker.go | 2 +- pkg/locker/locker_test.go | 2 +- pkg/longpath/longpath.go | 2 +- pkg/longpath/longpath_test.go | 2 +- pkg/loopback/attach_loopback.go | 2 +- pkg/loopback/ioctl.go | 2 +- pkg/loopback/loop_wrapper.go | 2 +- pkg/loopback/loopback.go | 2 +- pkg/mount/flags.go | 2 +- pkg/mount/flags_freebsd.go | 2 +- pkg/mount/flags_linux.go | 2 +- pkg/mount/flags_unsupported.go | 2 +- pkg/mount/mount.go | 2 +- pkg/mount/mount_unix_test.go | 2 +- pkg/mount/mounter_freebsd.go | 2 +- pkg/mount/mounter_linux.go | 2 +- pkg/mount/mounter_linux_test.go | 2 +- pkg/mount/mounter_unsupported.go | 2 +- pkg/mount/mountinfo.go | 2 +- pkg/mount/mountinfo_freebsd.go | 2 +- pkg/mount/mountinfo_linux.go | 2 +- pkg/mount/mountinfo_linux_test.go | 2 +- pkg/mount/mountinfo_unsupported.go | 2 +- pkg/mount/mountinfo_windows.go | 2 +- pkg/mount/sharedsubtree_linux.go | 2 +- pkg/mount/sharedsubtree_linux_test.go | 2 +- pkg/namesgenerator/names-generator.go | 2 +- pkg/namesgenerator/names-generator_test.go | 2 +- pkg/parsers/kernel/kernel.go | 2 +- pkg/parsers/kernel/kernel_darwin.go | 2 +- pkg/parsers/kernel/kernel_unix.go | 2 +- pkg/parsers/kernel/kernel_unix_test.go | 2 +- pkg/parsers/kernel/kernel_windows.go | 2 +- pkg/parsers/kernel/uname_linux.go | 2 +- pkg/parsers/kernel/uname_solaris.go | 2 +- pkg/parsers/kernel/uname_unsupported.go | 2 +- pkg/parsers/operatingsystem/operatingsystem_linux.go | 2 +- pkg/parsers/operatingsystem/operatingsystem_unix.go | 2 +- pkg/parsers/operatingsystem/operatingsystem_unix_test.go | 2 +- pkg/parsers/operatingsystem/operatingsystem_windows.go | 2 +- pkg/parsers/parsers.go | 2 +- pkg/parsers/parsers_test.go | 2 +- pkg/pidfile/pidfile.go | 2 +- pkg/pidfile/pidfile_darwin.go | 2 +- pkg/pidfile/pidfile_test.go | 2 +- pkg/pidfile/pidfile_unix.go | 2 +- pkg/pidfile/pidfile_windows.go | 2 +- pkg/platform/architecture_linux.go | 2 +- pkg/platform/architecture_unix.go | 2 +- pkg/platform/architecture_windows.go | 2 +- pkg/platform/platform.go | 2 +- pkg/plugingetter/getter.go | 2 +- pkg/plugins/client.go | 2 +- pkg/plugins/client_test.go | 2 +- pkg/plugins/discovery.go | 2 +- pkg/plugins/discovery_test.go | 2 +- pkg/plugins/discovery_unix.go | 2 +- pkg/plugins/discovery_unix_test.go | 2 +- pkg/plugins/discovery_windows.go | 2 +- pkg/plugins/errors.go | 2 +- pkg/plugins/plugin_test.go | 2 +- pkg/plugins/pluginrpc-gen/fixtures/foo.go | 2 +- pkg/plugins/pluginrpc-gen/fixtures/otherfixture/spaceship.go | 2 +- pkg/plugins/plugins.go | 2 +- pkg/plugins/plugins_unix.go | 2 +- pkg/plugins/plugins_windows.go | 2 +- pkg/plugins/transport/http.go | 2 +- pkg/plugins/transport/http_test.go | 2 +- pkg/plugins/transport/transport.go | 2 +- pkg/pools/pools.go | 2 +- pkg/pools/pools_test.go | 2 +- pkg/progress/progress.go | 2 +- pkg/progress/progressreader.go | 2 +- pkg/progress/progressreader_test.go | 2 +- pkg/pubsub/publisher.go | 2 +- pkg/pubsub/publisher_test.go | 2 +- pkg/reexec/command_linux.go | 2 +- pkg/reexec/command_unix.go | 2 +- pkg/reexec/command_unsupported.go | 2 +- pkg/reexec/command_windows.go | 2 +- pkg/reexec/reexec.go | 2 +- pkg/reexec/reexec_test.go | 2 +- pkg/signal/signal.go | 2 +- pkg/signal/signal_darwin.go | 2 +- pkg/signal/signal_freebsd.go | 2 +- pkg/signal/signal_linux.go | 2 +- pkg/signal/signal_linux_test.go | 2 +- pkg/signal/signal_test.go | 2 +- pkg/signal/signal_unix.go | 2 +- pkg/signal/signal_unsupported.go | 2 +- pkg/signal/signal_windows.go | 2 +- pkg/signal/trap.go | 2 +- pkg/signal/trap_linux_test.go | 2 +- pkg/stdcopy/stdcopy.go | 2 +- pkg/stdcopy/stdcopy_test.go | 2 +- pkg/streamformatter/streamformatter.go | 2 +- pkg/streamformatter/streamformatter_test.go | 2 +- pkg/streamformatter/streamwriter.go | 2 +- pkg/streamformatter/streamwriter_test.go | 2 +- pkg/stringid/stringid.go | 2 +- pkg/stringid/stringid_test.go | 2 +- pkg/symlink/fs.go | 2 +- pkg/symlink/fs_unix.go | 2 +- pkg/symlink/fs_unix_test.go | 2 +- pkg/symlink/fs_windows.go | 2 +- pkg/sysinfo/numcpu.go | 2 +- pkg/sysinfo/numcpu_linux.go | 2 +- pkg/sysinfo/numcpu_windows.go | 2 +- pkg/sysinfo/sysinfo.go | 2 +- pkg/sysinfo/sysinfo_linux.go | 2 +- pkg/sysinfo/sysinfo_linux_test.go | 2 +- pkg/sysinfo/sysinfo_test.go | 2 +- pkg/sysinfo/sysinfo_unix.go | 2 +- pkg/sysinfo/sysinfo_windows.go | 2 +- pkg/system/chtimes.go | 2 +- pkg/system/chtimes_test.go | 2 +- pkg/system/chtimes_unix.go | 2 +- pkg/system/chtimes_unix_test.go | 2 +- pkg/system/chtimes_windows.go | 2 +- pkg/system/chtimes_windows_test.go | 2 +- pkg/system/errors.go | 2 +- pkg/system/exitcode.go | 2 +- pkg/system/filesys.go | 2 +- pkg/system/filesys_windows.go | 2 +- pkg/system/init.go | 2 +- pkg/system/init_unix.go | 2 +- pkg/system/init_windows.go | 2 +- pkg/system/lcow.go | 2 +- pkg/system/lcow_unix.go | 2 +- pkg/system/lcow_windows.go | 2 +- pkg/system/lstat_unix.go | 2 +- pkg/system/lstat_unix_test.go | 2 +- pkg/system/lstat_windows.go | 2 +- pkg/system/meminfo.go | 2 +- pkg/system/meminfo_linux.go | 2 +- pkg/system/meminfo_unix_test.go | 2 +- pkg/system/meminfo_unsupported.go | 2 +- pkg/system/meminfo_windows.go | 2 +- pkg/system/mknod.go | 2 +- pkg/system/mknod_windows.go | 2 +- pkg/system/path.go | 2 +- pkg/system/path_windows_test.go | 2 +- pkg/system/process_unix.go | 2 +- pkg/system/process_windows.go | 2 +- pkg/system/rm.go | 2 +- pkg/system/rm_test.go | 2 +- pkg/system/stat_darwin.go | 2 +- pkg/system/stat_freebsd.go | 2 +- pkg/system/stat_linux.go | 2 +- pkg/system/stat_openbsd.go | 2 +- pkg/system/stat_solaris.go | 2 +- pkg/system/stat_unix.go | 2 +- pkg/system/stat_unix_test.go | 2 +- pkg/system/stat_windows.go | 2 +- pkg/system/syscall_unix.go | 2 +- pkg/system/syscall_windows.go | 2 +- pkg/system/syscall_windows_test.go | 2 +- pkg/system/umask.go | 2 +- pkg/system/umask_windows.go | 2 +- pkg/system/utimes_freebsd.go | 2 +- pkg/system/utimes_linux.go | 2 +- pkg/system/utimes_unix_test.go | 2 +- pkg/system/utimes_unsupported.go | 2 +- pkg/system/xattrs_linux.go | 2 +- pkg/system/xattrs_unsupported.go | 2 +- pkg/tailfile/tailfile.go | 2 +- pkg/tailfile/tailfile_test.go | 2 +- pkg/tarsum/builder_context.go | 2 +- pkg/tarsum/builder_context_test.go | 2 +- pkg/tarsum/fileinfosums.go | 2 +- pkg/tarsum/fileinfosums_test.go | 2 +- pkg/tarsum/tarsum.go | 2 +- pkg/tarsum/tarsum_test.go | 2 +- pkg/tarsum/versioning.go | 2 +- pkg/tarsum/versioning_test.go | 2 +- pkg/tarsum/writercloser.go | 2 +- pkg/term/ascii.go | 2 +- pkg/term/ascii_test.go | 2 +- pkg/term/proxy.go | 2 +- pkg/term/proxy_test.go | 2 +- pkg/term/tc.go | 2 +- pkg/term/term.go | 2 +- pkg/term/term_linux_test.go | 2 +- pkg/term/term_windows.go | 2 +- pkg/term/termios_bsd.go | 2 +- pkg/term/termios_linux.go | 2 +- pkg/term/windows/ansi_reader.go | 2 +- pkg/term/windows/ansi_writer.go | 2 +- pkg/term/windows/console.go | 2 +- pkg/term/windows/windows.go | 2 +- pkg/term/windows/windows_test.go | 2 +- pkg/term/winsize.go | 2 +- pkg/truncindex/truncindex.go | 2 +- pkg/truncindex/truncindex_test.go | 2 +- pkg/urlutil/urlutil.go | 2 +- pkg/urlutil/urlutil_test.go | 2 +- pkg/useragent/useragent.go | 2 +- pkg/useragent/useragent_test.go | 2 +- plugin/backend_linux.go | 2 +- plugin/backend_linux_test.go | 2 +- plugin/backend_unsupported.go | 2 +- plugin/blobstore.go | 2 +- plugin/defs.go | 2 +- plugin/errors.go | 2 +- plugin/events.go | 2 +- plugin/executor/containerd/containerd.go | 2 +- plugin/manager.go | 2 +- plugin/manager_linux.go | 2 +- plugin/manager_linux_test.go | 2 +- plugin/manager_test.go | 2 +- plugin/manager_windows.go | 2 +- plugin/store.go | 2 +- plugin/store_test.go | 2 +- plugin/v2/plugin.go | 2 +- plugin/v2/plugin_linux.go | 2 +- plugin/v2/plugin_unsupported.go | 2 +- plugin/v2/settable.go | 2 +- plugin/v2/settable_test.go | 2 +- profiles/apparmor/apparmor.go | 2 +- profiles/apparmor/template.go | 2 +- profiles/seccomp/seccomp.go | 2 +- profiles/seccomp/seccomp_default.go | 2 +- profiles/seccomp/seccomp_test.go | 2 +- profiles/seccomp/seccomp_unsupported.go | 2 +- reference/errors.go | 2 +- reference/store.go | 2 +- reference/store_test.go | 2 +- registry/auth.go | 2 +- registry/auth_test.go | 2 +- registry/config.go | 2 +- registry/config_test.go | 2 +- registry/config_unix.go | 2 +- registry/config_windows.go | 2 +- registry/endpoint_test.go | 2 +- registry/endpoint_v1.go | 2 +- registry/errors.go | 2 +- registry/registry.go | 2 +- registry/registry_mock_test.go | 2 +- registry/registry_test.go | 2 +- registry/resumable/resumablerequestreader.go | 2 +- registry/resumable/resumablerequestreader_test.go | 2 +- registry/service.go | 2 +- registry/service_v1.go | 2 +- registry/service_v1_test.go | 2 +- registry/service_v2.go | 2 +- registry/session.go | 2 +- registry/types.go | 2 +- restartmanager/restartmanager.go | 2 +- restartmanager/restartmanager_test.go | 2 +- runconfig/config.go | 2 +- runconfig/config_test.go | 2 +- runconfig/config_unix.go | 2 +- runconfig/config_windows.go | 2 +- runconfig/errors.go | 2 +- runconfig/hostconfig.go | 2 +- runconfig/hostconfig_test.go | 2 +- runconfig/hostconfig_unix.go | 2 +- runconfig/hostconfig_windows.go | 2 +- runconfig/hostconfig_windows_test.go | 2 +- runconfig/opts/parse.go | 2 +- volume/drivers/adapter.go | 2 +- volume/drivers/extpoint.go | 2 +- volume/drivers/extpoint_test.go | 2 +- volume/drivers/proxy.go | 2 +- volume/drivers/proxy_test.go | 2 +- volume/lcow_parser.go | 2 +- volume/linux_parser.go | 2 +- volume/local/local.go | 2 +- volume/local/local_test.go | 2 +- volume/local/local_unix.go | 2 +- volume/local/local_windows.go | 2 +- volume/parser.go | 2 +- volume/store/db.go | 2 +- volume/store/errors.go | 2 +- volume/store/restore.go | 2 +- volume/store/store.go | 2 +- volume/store/store_test.go | 2 +- volume/store/store_unix.go | 2 +- volume/store/store_windows.go | 2 +- volume/testutils/testutils.go | 2 +- volume/validate.go | 2 +- volume/validate_test.go | 2 +- volume/validate_unix_test.go | 2 +- volume/validate_windows_test.go | 2 +- volume/volume.go | 2 +- volume/volume_copy.go | 2 +- volume/volume_test.go | 2 +- volume/volume_unix.go | 2 +- volume/volume_windows.go | 2 +- volume/windows_parser.go | 2 +- 1360 files changed, 1360 insertions(+), 1360 deletions(-) diff --git a/api/common.go b/api/common.go index 693d0a4eb0..97a92f8b78 100644 --- a/api/common.go +++ b/api/common.go @@ -1,4 +1,4 @@ -package api +package api // import "github.com/docker/docker/api" // Common constants for daemon and client. const ( diff --git a/api/common_unix.go b/api/common_unix.go index 081e61c451..af1a541646 100644 --- a/api/common_unix.go +++ b/api/common_unix.go @@ -1,6 +1,6 @@ // +build !windows -package api +package api // import "github.com/docker/docker/api" // MinVersion represents Minimum REST API version supported const MinVersion string = "1.12" diff --git a/api/common_windows.go b/api/common_windows.go index a6268a4ff7..590ba5479b 100644 --- a/api/common_windows.go +++ b/api/common_windows.go @@ -1,4 +1,4 @@ -package api +package api // import "github.com/docker/docker/api" // MinVersion represents Minimum REST API version supported // Technically the first daemon API version released on Windows is v1.25 in diff --git a/api/server/backend/build/backend.go b/api/server/backend/build/backend.go index a702d04a40..458c304e8f 100644 --- a/api/server/backend/build/backend.go +++ b/api/server/backend/build/backend.go @@ -1,4 +1,4 @@ -package build +package build // import "github.com/docker/docker/api/server/backend/build" import ( "fmt" diff --git a/api/server/backend/build/tag.go b/api/server/backend/build/tag.go index 5c3918a3e1..f840b9d726 100644 --- a/api/server/backend/build/tag.go +++ b/api/server/backend/build/tag.go @@ -1,4 +1,4 @@ -package build +package build // import "github.com/docker/docker/api/server/backend/build" import ( "fmt" diff --git a/api/server/httputils/decoder.go b/api/server/httputils/decoder.go index 458eac5600..8293503c48 100644 --- a/api/server/httputils/decoder.go +++ b/api/server/httputils/decoder.go @@ -1,4 +1,4 @@ -package httputils +package httputils // import "github.com/docker/docker/api/server/httputils" import ( "io" diff --git a/api/server/httputils/errors.go b/api/server/httputils/errors.go index f5008223c9..a21affff34 100644 --- a/api/server/httputils/errors.go +++ b/api/server/httputils/errors.go @@ -1,4 +1,4 @@ -package httputils +package httputils // import "github.com/docker/docker/api/server/httputils" import ( "fmt" diff --git a/api/server/httputils/form.go b/api/server/httputils/form.go index 1ce822ed94..6d166eac10 100644 --- a/api/server/httputils/form.go +++ b/api/server/httputils/form.go @@ -1,4 +1,4 @@ -package httputils +package httputils // import "github.com/docker/docker/api/server/httputils" import ( "net/http" diff --git a/api/server/httputils/form_test.go b/api/server/httputils/form_test.go index bc790e99c3..e7e2daea20 100644 --- a/api/server/httputils/form_test.go +++ b/api/server/httputils/form_test.go @@ -1,4 +1,4 @@ -package httputils +package httputils // import "github.com/docker/docker/api/server/httputils" import ( "net/http" diff --git a/api/server/httputils/httputils.go b/api/server/httputils/httputils.go index 81fbabac17..fa1370692d 100644 --- a/api/server/httputils/httputils.go +++ b/api/server/httputils/httputils.go @@ -1,4 +1,4 @@ -package httputils +package httputils // import "github.com/docker/docker/api/server/httputils" import ( "io" diff --git a/api/server/httputils/httputils_test.go b/api/server/httputils/httputils_test.go index d551b9d98a..97f83188d1 100644 --- a/api/server/httputils/httputils_test.go +++ b/api/server/httputils/httputils_test.go @@ -1,4 +1,4 @@ -package httputils +package httputils // import "github.com/docker/docker/api/server/httputils" import "testing" diff --git a/api/server/httputils/httputils_write_json.go b/api/server/httputils/httputils_write_json.go index 562c127e86..148dd038b3 100644 --- a/api/server/httputils/httputils_write_json.go +++ b/api/server/httputils/httputils_write_json.go @@ -1,4 +1,4 @@ -package httputils +package httputils // import "github.com/docker/docker/api/server/httputils" import ( "encoding/json" diff --git a/api/server/httputils/write_log_stream.go b/api/server/httputils/write_log_stream.go index d7a49a1584..5e6793d486 100644 --- a/api/server/httputils/write_log_stream.go +++ b/api/server/httputils/write_log_stream.go @@ -1,4 +1,4 @@ -package httputils +package httputils // import "github.com/docker/docker/api/server/httputils" import ( "fmt" diff --git a/api/server/middleware.go b/api/server/middleware.go index 653d554288..3c5683fad9 100644 --- a/api/server/middleware.go +++ b/api/server/middleware.go @@ -1,4 +1,4 @@ -package server +package server // import "github.com/docker/docker/api/server" import ( "github.com/docker/docker/api/server/httputils" diff --git a/api/server/middleware/cors.go b/api/server/middleware/cors.go index 8ee19a343d..48b436b30d 100644 --- a/api/server/middleware/cors.go +++ b/api/server/middleware/cors.go @@ -1,4 +1,4 @@ -package middleware +package middleware // import "github.com/docker/docker/api/server/middleware" import ( "net/http" diff --git a/api/server/middleware/debug.go b/api/server/middleware/debug.go index 7b867f1ebf..5a00196152 100644 --- a/api/server/middleware/debug.go +++ b/api/server/middleware/debug.go @@ -1,4 +1,4 @@ -package middleware +package middleware // import "github.com/docker/docker/api/server/middleware" import ( "bufio" diff --git a/api/server/middleware/debug_test.go b/api/server/middleware/debug_test.go index 87ecafd145..a467c4a442 100644 --- a/api/server/middleware/debug_test.go +++ b/api/server/middleware/debug_test.go @@ -1,4 +1,4 @@ -package middleware +package middleware // import "github.com/docker/docker/api/server/middleware" import ( "testing" diff --git a/api/server/middleware/experimental.go b/api/server/middleware/experimental.go index b8f56e88b4..c4075b90dc 100644 --- a/api/server/middleware/experimental.go +++ b/api/server/middleware/experimental.go @@ -1,4 +1,4 @@ -package middleware +package middleware // import "github.com/docker/docker/api/server/middleware" import ( "net/http" diff --git a/api/server/middleware/middleware.go b/api/server/middleware/middleware.go index dc1f5bfa0d..4bc3d14146 100644 --- a/api/server/middleware/middleware.go +++ b/api/server/middleware/middleware.go @@ -1,4 +1,4 @@ -package middleware +package middleware // import "github.com/docker/docker/api/server/middleware" import ( "net/http" diff --git a/api/server/middleware/version.go b/api/server/middleware/version.go index c3e289cd49..b9ac5ce49a 100644 --- a/api/server/middleware/version.go +++ b/api/server/middleware/version.go @@ -1,4 +1,4 @@ -package middleware +package middleware // import "github.com/docker/docker/api/server/middleware" import ( "fmt" diff --git a/api/server/middleware/version_test.go b/api/server/middleware/version_test.go index 59df0675ad..37d22b5c46 100644 --- a/api/server/middleware/version_test.go +++ b/api/server/middleware/version_test.go @@ -1,4 +1,4 @@ -package middleware +package middleware // import "github.com/docker/docker/api/server/middleware" import ( "net/http" diff --git a/api/server/router/build/backend.go b/api/server/router/build/backend.go index defffd3ef0..84feb4bdd7 100644 --- a/api/server/router/build/backend.go +++ b/api/server/router/build/backend.go @@ -1,4 +1,4 @@ -package build +package build // import "github.com/docker/docker/api/server/router/build" import ( "github.com/docker/docker/api/types" diff --git a/api/server/router/build/build.go b/api/server/router/build/build.go index 78f5ae2f2f..dc13a10602 100644 --- a/api/server/router/build/build.go +++ b/api/server/router/build/build.go @@ -1,4 +1,4 @@ -package build +package build // import "github.com/docker/docker/api/server/router/build" import "github.com/docker/docker/api/server/router" diff --git a/api/server/router/build/build_routes.go b/api/server/router/build/build_routes.go index 491fa85a86..396797d9d5 100644 --- a/api/server/router/build/build_routes.go +++ b/api/server/router/build/build_routes.go @@ -1,4 +1,4 @@ -package build +package build // import "github.com/docker/docker/api/server/router/build" import ( "bytes" diff --git a/api/server/router/checkpoint/backend.go b/api/server/router/checkpoint/backend.go index 8810f88b72..90c5d1a984 100644 --- a/api/server/router/checkpoint/backend.go +++ b/api/server/router/checkpoint/backend.go @@ -1,4 +1,4 @@ -package checkpoint +package checkpoint // import "github.com/docker/docker/api/server/router/checkpoint" import "github.com/docker/docker/api/types" diff --git a/api/server/router/checkpoint/checkpoint.go b/api/server/router/checkpoint/checkpoint.go index b169718232..37bd0bdad8 100644 --- a/api/server/router/checkpoint/checkpoint.go +++ b/api/server/router/checkpoint/checkpoint.go @@ -1,4 +1,4 @@ -package checkpoint +package checkpoint // import "github.com/docker/docker/api/server/router/checkpoint" import ( "github.com/docker/docker/api/server/httputils" diff --git a/api/server/router/checkpoint/checkpoint_routes.go b/api/server/router/checkpoint/checkpoint_routes.go index f988431191..0a7a1c6a08 100644 --- a/api/server/router/checkpoint/checkpoint_routes.go +++ b/api/server/router/checkpoint/checkpoint_routes.go @@ -1,4 +1,4 @@ -package checkpoint +package checkpoint // import "github.com/docker/docker/api/server/router/checkpoint" import ( "encoding/json" diff --git a/api/server/router/container/backend.go b/api/server/router/container/backend.go index 8a32f26e6c..b6b1dec94c 100644 --- a/api/server/router/container/backend.go +++ b/api/server/router/container/backend.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/api/server/router/container" import ( "io" diff --git a/api/server/router/container/container.go b/api/server/router/container/container.go index e3637824b6..c763900c60 100644 --- a/api/server/router/container/container.go +++ b/api/server/router/container/container.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/api/server/router/container" import ( "github.com/docker/docker/api/server/httputils" diff --git a/api/server/router/container/container_routes.go b/api/server/router/container/container_routes.go index 5f8456d706..5de01e7639 100644 --- a/api/server/router/container/container_routes.go +++ b/api/server/router/container/container_routes.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/api/server/router/container" import ( "encoding/json" diff --git a/api/server/router/container/copy.go b/api/server/router/container/copy.go index 356775f4d0..77ce500419 100644 --- a/api/server/router/container/copy.go +++ b/api/server/router/container/copy.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/api/server/router/container" import ( "encoding/base64" diff --git a/api/server/router/container/exec.go b/api/server/router/container/exec.go index 6dfca729c5..8fe2dabd51 100644 --- a/api/server/router/container/exec.go +++ b/api/server/router/container/exec.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/api/server/router/container" import ( "encoding/json" diff --git a/api/server/router/container/inspect.go b/api/server/router/container/inspect.go index dbbced7eee..4ff72cc9c3 100644 --- a/api/server/router/container/inspect.go +++ b/api/server/router/container/inspect.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/api/server/router/container" import ( "net/http" diff --git a/api/server/router/debug/debug.go b/api/server/router/debug/debug.go index b66ff3cf3a..9d9e9cf0c1 100644 --- a/api/server/router/debug/debug.go +++ b/api/server/router/debug/debug.go @@ -1,4 +1,4 @@ -package debug +package debug // import "github.com/docker/docker/api/server/router/debug" import ( "expvar" diff --git a/api/server/router/debug/debug_routes.go b/api/server/router/debug/debug_routes.go index f2a72615a0..324b46ebd5 100644 --- a/api/server/router/debug/debug_routes.go +++ b/api/server/router/debug/debug_routes.go @@ -1,4 +1,4 @@ -package debug +package debug // import "github.com/docker/docker/api/server/router/debug" import ( "net/http" diff --git a/api/server/router/distribution/backend.go b/api/server/router/distribution/backend.go index fc3a80e59f..8ba016114b 100644 --- a/api/server/router/distribution/backend.go +++ b/api/server/router/distribution/backend.go @@ -1,4 +1,4 @@ -package distribution +package distribution // import "github.com/docker/docker/api/server/router/distribution" import ( "github.com/docker/distribution" diff --git a/api/server/router/distribution/distribution.go b/api/server/router/distribution/distribution.go index c1fb7bc1e9..1e9e5ff836 100644 --- a/api/server/router/distribution/distribution.go +++ b/api/server/router/distribution/distribution.go @@ -1,4 +1,4 @@ -package distribution +package distribution // import "github.com/docker/docker/api/server/router/distribution" import "github.com/docker/docker/api/server/router" diff --git a/api/server/router/distribution/distribution_routes.go b/api/server/router/distribution/distribution_routes.go index cc9e66a166..f10e208a8b 100644 --- a/api/server/router/distribution/distribution_routes.go +++ b/api/server/router/distribution/distribution_routes.go @@ -1,4 +1,4 @@ -package distribution +package distribution // import "github.com/docker/docker/api/server/router/distribution" import ( "encoding/base64" diff --git a/api/server/router/experimental.go b/api/server/router/experimental.go index 4045de5433..727670ce76 100644 --- a/api/server/router/experimental.go +++ b/api/server/router/experimental.go @@ -1,4 +1,4 @@ -package router +package router // import "github.com/docker/docker/api/server/router" import ( "net/http" diff --git a/api/server/router/image/backend.go b/api/server/router/image/backend.go index 9a588a71a9..140a8d59fd 100644 --- a/api/server/router/image/backend.go +++ b/api/server/router/image/backend.go @@ -1,4 +1,4 @@ -package image +package image // import "github.com/docker/docker/api/server/router/image" import ( "io" diff --git a/api/server/router/image/image.go b/api/server/router/image/image.go index 6c233d900c..980bbd2421 100644 --- a/api/server/router/image/image.go +++ b/api/server/router/image/image.go @@ -1,4 +1,4 @@ -package image +package image // import "github.com/docker/docker/api/server/router/image" import ( "github.com/docker/docker/api/server/httputils" diff --git a/api/server/router/image/image_routes.go b/api/server/router/image/image_routes.go index dc16a23af0..249683bab8 100644 --- a/api/server/router/image/image_routes.go +++ b/api/server/router/image/image_routes.go @@ -1,4 +1,4 @@ -package image +package image // import "github.com/docker/docker/api/server/router/image" import ( "encoding/base64" diff --git a/api/server/router/local.go b/api/server/router/local.go index ba70f34132..86fd692068 100644 --- a/api/server/router/local.go +++ b/api/server/router/local.go @@ -1,4 +1,4 @@ -package router +package router // import "github.com/docker/docker/api/server/router" import ( "net/http" diff --git a/api/server/router/network/backend.go b/api/server/router/network/backend.go index 186ae8fc71..e9ae363de7 100644 --- a/api/server/router/network/backend.go +++ b/api/server/router/network/backend.go @@ -1,4 +1,4 @@ -package network +package network // import "github.com/docker/docker/api/server/router/network" import ( "golang.org/x/net/context" diff --git a/api/server/router/network/filter.go b/api/server/router/network/filter.go index 6a5fce6892..02683e8005 100644 --- a/api/server/router/network/filter.go +++ b/api/server/router/network/filter.go @@ -1,4 +1,4 @@ -package network +package network // import "github.com/docker/docker/api/server/router/network" import ( "github.com/docker/docker/api/types" diff --git a/api/server/router/network/filter_test.go b/api/server/router/network/filter_test.go index af3e949546..8a84fd16fe 100644 --- a/api/server/router/network/filter_test.go +++ b/api/server/router/network/filter_test.go @@ -1,6 +1,6 @@ // +build !windows -package network +package network // import "github.com/docker/docker/api/server/router/network" import ( "strings" diff --git a/api/server/router/network/network.go b/api/server/router/network/network.go index eaf52aa2a9..85f0e0a8ba 100644 --- a/api/server/router/network/network.go +++ b/api/server/router/network/network.go @@ -1,4 +1,4 @@ -package network +package network // import "github.com/docker/docker/api/server/router/network" import ( "github.com/docker/docker/api/server/router" diff --git a/api/server/router/network/network_routes.go b/api/server/router/network/network_routes.go index df7af31997..4f7a400b6d 100644 --- a/api/server/router/network/network_routes.go +++ b/api/server/router/network/network_routes.go @@ -1,4 +1,4 @@ -package network +package network // import "github.com/docker/docker/api/server/router/network" import ( "encoding/json" diff --git a/api/server/router/plugin/backend.go b/api/server/router/plugin/backend.go index 1b60501fc5..7f8a71ce1f 100644 --- a/api/server/router/plugin/backend.go +++ b/api/server/router/plugin/backend.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/api/server/router/plugin" import ( "io" diff --git a/api/server/router/plugin/plugin.go b/api/server/router/plugin/plugin.go index 22819e27a9..7a4f987aa3 100644 --- a/api/server/router/plugin/plugin.go +++ b/api/server/router/plugin/plugin.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/api/server/router/plugin" import "github.com/docker/docker/api/server/router" diff --git a/api/server/router/plugin/plugin_routes.go b/api/server/router/plugin/plugin_routes.go index d74a01f300..5a3ab99fd3 100644 --- a/api/server/router/plugin/plugin_routes.go +++ b/api/server/router/plugin/plugin_routes.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/api/server/router/plugin" import ( "encoding/base64" diff --git a/api/server/router/router.go b/api/server/router/router.go index 2de25c27ff..e62faed710 100644 --- a/api/server/router/router.go +++ b/api/server/router/router.go @@ -1,4 +1,4 @@ -package router +package router // import "github.com/docker/docker/api/server/router" import "github.com/docker/docker/api/server/httputils" diff --git a/api/server/router/session/backend.go b/api/server/router/session/backend.go index ad4cc1bc50..1a7eb80780 100644 --- a/api/server/router/session/backend.go +++ b/api/server/router/session/backend.go @@ -1,4 +1,4 @@ -package session +package session // import "github.com/docker/docker/api/server/router/session" import ( "net/http" diff --git a/api/server/router/session/session.go b/api/server/router/session/session.go index 977a9c42c1..de6d63008a 100644 --- a/api/server/router/session/session.go +++ b/api/server/router/session/session.go @@ -1,4 +1,4 @@ -package session +package session // import "github.com/docker/docker/api/server/router/session" import "github.com/docker/docker/api/server/router" diff --git a/api/server/router/session/session_routes.go b/api/server/router/session/session_routes.go index 8eb8074ebc..64a5cd70cc 100644 --- a/api/server/router/session/session_routes.go +++ b/api/server/router/session/session_routes.go @@ -1,4 +1,4 @@ -package session +package session // import "github.com/docker/docker/api/server/router/session" import ( "net/http" diff --git a/api/server/router/swarm/backend.go b/api/server/router/swarm/backend.go index 3b7933d7b1..c37cd78bcd 100644 --- a/api/server/router/swarm/backend.go +++ b/api/server/router/swarm/backend.go @@ -1,4 +1,4 @@ -package swarm +package swarm // import "github.com/docker/docker/api/server/router/swarm" import ( basictypes "github.com/docker/docker/api/types" diff --git a/api/server/router/swarm/cluster.go b/api/server/router/swarm/cluster.go index 2529250b0c..52f950a3a9 100644 --- a/api/server/router/swarm/cluster.go +++ b/api/server/router/swarm/cluster.go @@ -1,4 +1,4 @@ -package swarm +package swarm // import "github.com/docker/docker/api/server/router/swarm" import "github.com/docker/docker/api/server/router" diff --git a/api/server/router/swarm/cluster_routes.go b/api/server/router/swarm/cluster_routes.go index bd98acfcf1..33e52a3af1 100644 --- a/api/server/router/swarm/cluster_routes.go +++ b/api/server/router/swarm/cluster_routes.go @@ -1,4 +1,4 @@ -package swarm +package swarm // import "github.com/docker/docker/api/server/router/swarm" import ( "encoding/json" diff --git a/api/server/router/swarm/helpers.go b/api/server/router/swarm/helpers.go index 2c411f7d73..f23b96bcc0 100644 --- a/api/server/router/swarm/helpers.go +++ b/api/server/router/swarm/helpers.go @@ -1,4 +1,4 @@ -package swarm +package swarm // import "github.com/docker/docker/api/server/router/swarm" import ( "fmt" diff --git a/api/server/router/system/backend.go b/api/server/router/system/backend.go index da1de380db..f083a74d53 100644 --- a/api/server/router/system/backend.go +++ b/api/server/router/system/backend.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/api/server/router/system" import ( "time" diff --git a/api/server/router/system/system.go b/api/server/router/system/system.go index a64631e8aa..e20bb34248 100644 --- a/api/server/router/system/system.go +++ b/api/server/router/system/system.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/api/server/router/system" import ( "github.com/docker/docker/api/server/router" diff --git a/api/server/router/system/system_routes.go b/api/server/router/system/system_routes.go index 535956d65f..44b7dbe7eb 100644 --- a/api/server/router/system/system_routes.go +++ b/api/server/router/system/system_routes.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/api/server/router/system" import ( "encoding/json" diff --git a/api/server/router/volume/backend.go b/api/server/router/volume/backend.go index b97cb94785..adb97615f2 100644 --- a/api/server/router/volume/backend.go +++ b/api/server/router/volume/backend.go @@ -1,4 +1,4 @@ -package volume +package volume // import "github.com/docker/docker/api/server/router/volume" import ( "golang.org/x/net/context" diff --git a/api/server/router/volume/volume.go b/api/server/router/volume/volume.go index b24c8fee55..04f365e370 100644 --- a/api/server/router/volume/volume.go +++ b/api/server/router/volume/volume.go @@ -1,4 +1,4 @@ -package volume +package volume // import "github.com/docker/docker/api/server/router/volume" import "github.com/docker/docker/api/server/router" diff --git a/api/server/router/volume/volume_routes.go b/api/server/router/volume/volume_routes.go index fef68960b4..731008660f 100644 --- a/api/server/router/volume/volume_routes.go +++ b/api/server/router/volume/volume_routes.go @@ -1,4 +1,4 @@ -package volume +package volume // import "github.com/docker/docker/api/server/router/volume" import ( "encoding/json" diff --git a/api/server/router_swapper.go b/api/server/router_swapper.go index 1ecc7a7f39..e8087492c4 100644 --- a/api/server/router_swapper.go +++ b/api/server/router_swapper.go @@ -1,4 +1,4 @@ -package server +package server // import "github.com/docker/docker/api/server" import ( "net/http" diff --git a/api/server/server.go b/api/server/server.go index bf3774bba0..2bcf1cabf8 100644 --- a/api/server/server.go +++ b/api/server/server.go @@ -1,4 +1,4 @@ -package server +package server // import "github.com/docker/docker/api/server" import ( "crypto/tls" diff --git a/api/server/server_test.go b/api/server/server_test.go index 272dc81fb6..5374af89d7 100644 --- a/api/server/server_test.go +++ b/api/server/server_test.go @@ -1,4 +1,4 @@ -package server +package server // import "github.com/docker/docker/api/server" import ( "net/http" diff --git a/api/types/auth.go b/api/types/auth.go index 056af6b842..ddf15bb182 100644 --- a/api/types/auth.go +++ b/api/types/auth.go @@ -1,4 +1,4 @@ -package types +package types // import "github.com/docker/docker/api/types" // AuthConfig contains authorization information for connecting to a Registry type AuthConfig struct { diff --git a/api/types/backend/backend.go b/api/types/backend/backend.go index 74cea50035..3dee4a4e3c 100644 --- a/api/types/backend/backend.go +++ b/api/types/backend/backend.go @@ -1,5 +1,5 @@ // Package backend includes types to send information to server backends. -package backend +package backend // import "github.com/docker/docker/api/types/backend" import ( "io" diff --git a/api/types/backend/build.go b/api/types/backend/build.go index 8df3b3ee6c..31e00ec6ce 100644 --- a/api/types/backend/build.go +++ b/api/types/backend/build.go @@ -1,4 +1,4 @@ -package backend +package backend // import "github.com/docker/docker/api/types/backend" import ( "io" diff --git a/api/types/blkiodev/blkio.go b/api/types/blkiodev/blkio.go index 931ae10ab1..bf3463b90e 100644 --- a/api/types/blkiodev/blkio.go +++ b/api/types/blkiodev/blkio.go @@ -1,4 +1,4 @@ -package blkiodev +package blkiodev // import "github.com/docker/docker/api/types/blkiodev" import "fmt" diff --git a/api/types/client.go b/api/types/client.go index 93ca428540..18b36d592b 100644 --- a/api/types/client.go +++ b/api/types/client.go @@ -1,4 +1,4 @@ -package types +package types // import "github.com/docker/docker/api/types" import ( "bufio" diff --git a/api/types/configs.go b/api/types/configs.go index 54d3e39fb9..9faf5748a3 100644 --- a/api/types/configs.go +++ b/api/types/configs.go @@ -1,4 +1,4 @@ -package types +package types // import "github.com/docker/docker/api/types" import ( "github.com/docker/docker/api/types/container" diff --git a/api/types/container/config.go b/api/types/container/config.go index 55a03fc981..89ad08c234 100644 --- a/api/types/container/config.go +++ b/api/types/container/config.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/api/types/container" import ( "time" diff --git a/api/types/container/host_config.go b/api/types/container/host_config.go index 568cdcca93..02271ecd98 100644 --- a/api/types/container/host_config.go +++ b/api/types/container/host_config.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/api/types/container" import ( "strings" diff --git a/api/types/container/hostconfig_unix.go b/api/types/container/hostconfig_unix.go index 2d664d1c96..cf6fdf4402 100644 --- a/api/types/container/hostconfig_unix.go +++ b/api/types/container/hostconfig_unix.go @@ -1,6 +1,6 @@ // +build !windows -package container +package container // import "github.com/docker/docker/api/types/container" // IsValid indicates if an isolation technology is valid func (i Isolation) IsValid() bool { diff --git a/api/types/container/hostconfig_windows.go b/api/types/container/hostconfig_windows.go index 3374d737f1..99f803a5bb 100644 --- a/api/types/container/hostconfig_windows.go +++ b/api/types/container/hostconfig_windows.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/api/types/container" // IsBridge indicates whether container uses the bridge network stack // in windows it is given the name NAT diff --git a/api/types/container/waitcondition.go b/api/types/container/waitcondition.go index 64820fe358..cd8311f99c 100644 --- a/api/types/container/waitcondition.go +++ b/api/types/container/waitcondition.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/api/types/container" // WaitCondition is a type used to specify a container state for which // to wait. diff --git a/api/types/events/events.go b/api/types/events/events.go index e292565b6c..027c6edb72 100644 --- a/api/types/events/events.go +++ b/api/types/events/events.go @@ -1,4 +1,4 @@ -package events +package events // import "github.com/docker/docker/api/types/events" const ( // ContainerEventType is the event type that containers generate diff --git a/api/types/filters/example_test.go b/api/types/filters/example_test.go index 6529be3250..c8fec1b9d8 100644 --- a/api/types/filters/example_test.go +++ b/api/types/filters/example_test.go @@ -1,4 +1,4 @@ -package filters +package filters // import "github.com/docker/docker/api/types/filters" func ExampleArgs_MatchKVList() { args := NewArgs( diff --git a/api/types/filters/parse.go b/api/types/filters/parse.go index d45d0528fb..a41e3d8d96 100644 --- a/api/types/filters/parse.go +++ b/api/types/filters/parse.go @@ -1,7 +1,7 @@ /*Package filters provides tools for encoding a mapping of keys to a set of multiple values. */ -package filters +package filters // import "github.com/docker/docker/api/types/filters" import ( "encoding/json" diff --git a/api/types/filters/parse_test.go b/api/types/filters/parse_test.go index 67b2ec930c..b54ffa66ec 100644 --- a/api/types/filters/parse_test.go +++ b/api/types/filters/parse_test.go @@ -1,4 +1,4 @@ -package filters +package filters // import "github.com/docker/docker/api/types/filters" import ( "errors" diff --git a/api/types/mount/mount.go b/api/types/mount/mount.go index b7d133cd84..3fef974df8 100644 --- a/api/types/mount/mount.go +++ b/api/types/mount/mount.go @@ -1,4 +1,4 @@ -package mount +package mount // import "github.com/docker/docker/api/types/mount" import ( "os" diff --git a/api/types/network/network.go b/api/types/network/network.go index 7c7dbacc85..761d0b34f2 100644 --- a/api/types/network/network.go +++ b/api/types/network/network.go @@ -1,4 +1,4 @@ -package network +package network // import "github.com/docker/docker/api/types/network" // Address represents an IP address type Address struct { diff --git a/api/types/plugin_responses.go b/api/types/plugin_responses.go index 18f743fcde..60d1fb5ad8 100644 --- a/api/types/plugin_responses.go +++ b/api/types/plugin_responses.go @@ -1,4 +1,4 @@ -package types +package types // import "github.com/docker/docker/api/types" import ( "encoding/json" diff --git a/api/types/plugins/logdriver/gen.go b/api/types/plugins/logdriver/gen.go index 068f987324..e5f10b5e0d 100644 --- a/api/types/plugins/logdriver/gen.go +++ b/api/types/plugins/logdriver/gen.go @@ -1,3 +1,3 @@ //go:generate protoc --gogofast_out=import_path=github.com/docker/docker/api/types/plugins/logdriver:. entry.proto -package logdriver +package logdriver // import "github.com/docker/docker/api/types/plugins/logdriver" diff --git a/api/types/plugins/logdriver/io.go b/api/types/plugins/logdriver/io.go index 8c1ed49dd6..9081b3b45f 100644 --- a/api/types/plugins/logdriver/io.go +++ b/api/types/plugins/logdriver/io.go @@ -1,4 +1,4 @@ -package logdriver +package logdriver // import "github.com/docker/docker/api/types/plugins/logdriver" import ( "encoding/binary" diff --git a/api/types/registry/authenticate.go b/api/types/registry/authenticate.go index 42cac4430a..f0a2113e40 100644 --- a/api/types/registry/authenticate.go +++ b/api/types/registry/authenticate.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/api/types/registry" // ---------------------------------------------------------------------------- // DO NOT EDIT THIS FILE diff --git a/api/types/registry/registry.go b/api/types/registry/registry.go index b98a943a13..8789ad3b32 100644 --- a/api/types/registry/registry.go +++ b/api/types/registry/registry.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/api/types/registry" import ( "encoding/json" diff --git a/api/types/seccomp.go b/api/types/seccomp.go index 7d62c9a43f..67a41e1a89 100644 --- a/api/types/seccomp.go +++ b/api/types/seccomp.go @@ -1,4 +1,4 @@ -package types +package types // import "github.com/docker/docker/api/types" // Seccomp represents the config for a seccomp profile for syscall restriction. type Seccomp struct { diff --git a/api/types/stats.go b/api/types/stats.go index 7ca76a5b63..60175c0613 100644 --- a/api/types/stats.go +++ b/api/types/stats.go @@ -1,6 +1,6 @@ // Package types is used for API stability in the types and response to the // consumers of the API stats endpoint. -package types +package types // import "github.com/docker/docker/api/types" import "time" diff --git a/api/types/strslice/strslice.go b/api/types/strslice/strslice.go index bad493fb89..82921cebc1 100644 --- a/api/types/strslice/strslice.go +++ b/api/types/strslice/strslice.go @@ -1,4 +1,4 @@ -package strslice +package strslice // import "github.com/docker/docker/api/types/strslice" import "encoding/json" diff --git a/api/types/strslice/strslice_test.go b/api/types/strslice/strslice_test.go index 1163b3652c..a065eb5551 100644 --- a/api/types/strslice/strslice_test.go +++ b/api/types/strslice/strslice_test.go @@ -1,4 +1,4 @@ -package strslice +package strslice // import "github.com/docker/docker/api/types/strslice" import ( "encoding/json" diff --git a/api/types/swarm/common.go b/api/types/swarm/common.go index 2834cf2022..ef020f458b 100644 --- a/api/types/swarm/common.go +++ b/api/types/swarm/common.go @@ -1,4 +1,4 @@ -package swarm +package swarm // import "github.com/docker/docker/api/types/swarm" import "time" diff --git a/api/types/swarm/config.go b/api/types/swarm/config.go index 0fb021ce92..c1fdf3b3e4 100644 --- a/api/types/swarm/config.go +++ b/api/types/swarm/config.go @@ -1,4 +1,4 @@ -package swarm +package swarm // import "github.com/docker/docker/api/types/swarm" import "os" diff --git a/api/types/swarm/container.go b/api/types/swarm/container.go index 734236c4b0..0041653c9d 100644 --- a/api/types/swarm/container.go +++ b/api/types/swarm/container.go @@ -1,4 +1,4 @@ -package swarm +package swarm // import "github.com/docker/docker/api/types/swarm" import ( "time" diff --git a/api/types/swarm/network.go b/api/types/swarm/network.go index 97c484e14c..fd9b1a52c2 100644 --- a/api/types/swarm/network.go +++ b/api/types/swarm/network.go @@ -1,4 +1,4 @@ -package swarm +package swarm // import "github.com/docker/docker/api/types/swarm" import ( "github.com/docker/docker/api/types/network" diff --git a/api/types/swarm/node.go b/api/types/swarm/node.go index 28c6851e9c..1e30f5fa10 100644 --- a/api/types/swarm/node.go +++ b/api/types/swarm/node.go @@ -1,4 +1,4 @@ -package swarm +package swarm // import "github.com/docker/docker/api/types/swarm" // Node represents a node. type Node struct { diff --git a/api/types/swarm/runtime.go b/api/types/swarm/runtime.go index c4c731dc82..81b5f4cfd9 100644 --- a/api/types/swarm/runtime.go +++ b/api/types/swarm/runtime.go @@ -1,4 +1,4 @@ -package swarm +package swarm // import "github.com/docker/docker/api/types/swarm" // RuntimeType is the type of runtime used for the TaskSpec type RuntimeType string diff --git a/api/types/swarm/runtime/gen.go b/api/types/swarm/runtime/gen.go index 47ae234ef3..98c2806c31 100644 --- a/api/types/swarm/runtime/gen.go +++ b/api/types/swarm/runtime/gen.go @@ -1,3 +1,3 @@ //go:generate protoc -I . --gogofast_out=import_path=github.com/docker/docker/api/types/swarm/runtime:. plugin.proto -package runtime +package runtime // import "github.com/docker/docker/api/types/swarm/runtime" diff --git a/api/types/swarm/secret.go b/api/types/swarm/secret.go index f9b1e92669..cfba1141d8 100644 --- a/api/types/swarm/secret.go +++ b/api/types/swarm/secret.go @@ -1,4 +1,4 @@ -package swarm +package swarm // import "github.com/docker/docker/api/types/swarm" import "os" diff --git a/api/types/swarm/service.go b/api/types/swarm/service.go index fa31a7ec86..abf192e759 100644 --- a/api/types/swarm/service.go +++ b/api/types/swarm/service.go @@ -1,4 +1,4 @@ -package swarm +package swarm // import "github.com/docker/docker/api/types/swarm" import "time" diff --git a/api/types/swarm/swarm.go b/api/types/swarm/swarm.go index b65fa86dac..1b111d725b 100644 --- a/api/types/swarm/swarm.go +++ b/api/types/swarm/swarm.go @@ -1,4 +1,4 @@ -package swarm +package swarm // import "github.com/docker/docker/api/types/swarm" import "time" diff --git a/api/types/swarm/task.go b/api/types/swarm/task.go index d7defa1e13..5c2bc492e4 100644 --- a/api/types/swarm/task.go +++ b/api/types/swarm/task.go @@ -1,4 +1,4 @@ -package swarm +package swarm // import "github.com/docker/docker/api/types/swarm" import ( "time" diff --git a/api/types/time/duration_convert.go b/api/types/time/duration_convert.go index 63e1eec19e..84b6f07322 100644 --- a/api/types/time/duration_convert.go +++ b/api/types/time/duration_convert.go @@ -1,4 +1,4 @@ -package time +package time // import "github.com/docker/docker/api/types/time" import ( "strconv" diff --git a/api/types/time/duration_convert_test.go b/api/types/time/duration_convert_test.go index 869c08f863..a23be94776 100644 --- a/api/types/time/duration_convert_test.go +++ b/api/types/time/duration_convert_test.go @@ -1,4 +1,4 @@ -package time +package time // import "github.com/docker/docker/api/types/time" import ( "testing" diff --git a/api/types/time/timestamp.go b/api/types/time/timestamp.go index ed9c1168b7..8d573accb1 100644 --- a/api/types/time/timestamp.go +++ b/api/types/time/timestamp.go @@ -1,4 +1,4 @@ -package time +package time // import "github.com/docker/docker/api/types/time" import ( "fmt" diff --git a/api/types/time/timestamp_test.go b/api/types/time/timestamp_test.go index a1651309d7..1a8b20b60f 100644 --- a/api/types/time/timestamp_test.go +++ b/api/types/time/timestamp_test.go @@ -1,4 +1,4 @@ -package time +package time // import "github.com/docker/docker/api/types/time" import ( "fmt" diff --git a/api/types/types.go b/api/types/types.go index 7814e6b934..729f4eb6c4 100644 --- a/api/types/types.go +++ b/api/types/types.go @@ -1,4 +1,4 @@ -package types +package types // import "github.com/docker/docker/api/types" import ( "errors" diff --git a/api/types/versions/compare.go b/api/types/versions/compare.go index 611d4fed66..8ccb0aa92e 100644 --- a/api/types/versions/compare.go +++ b/api/types/versions/compare.go @@ -1,4 +1,4 @@ -package versions +package versions // import "github.com/docker/docker/api/types/versions" import ( "strconv" diff --git a/api/types/versions/compare_test.go b/api/types/versions/compare_test.go index c2b96869f7..185e37c159 100644 --- a/api/types/versions/compare_test.go +++ b/api/types/versions/compare_test.go @@ -1,4 +1,4 @@ -package versions +package versions // import "github.com/docker/docker/api/types/versions" import ( "testing" diff --git a/api/types/versions/v1p19/types.go b/api/types/versions/v1p19/types.go index dc13150545..58afe32da0 100644 --- a/api/types/versions/v1p19/types.go +++ b/api/types/versions/v1p19/types.go @@ -1,5 +1,5 @@ // Package v1p19 provides specific API types for the API version 1, patch 19. -package v1p19 +package v1p19 // import "github.com/docker/docker/api/types/versions/v1p19" import ( "github.com/docker/docker/api/types" diff --git a/api/types/versions/v1p20/types.go b/api/types/versions/v1p20/types.go index 94a06d7452..cc7277b1b4 100644 --- a/api/types/versions/v1p20/types.go +++ b/api/types/versions/v1p20/types.go @@ -1,5 +1,5 @@ // Package v1p20 provides specific API types for the API version 1, patch 20. -package v1p20 +package v1p20 // import "github.com/docker/docker/api/types/versions/v1p20" import ( "github.com/docker/docker/api/types" diff --git a/api/types/volume/volumes_create.go b/api/types/volume/volumes_create.go index 9f70e43ca4..b2dd3a419d 100644 --- a/api/types/volume/volumes_create.go +++ b/api/types/volume/volumes_create.go @@ -1,4 +1,4 @@ -package volume +package volume // import "github.com/docker/docker/api/types/volume" // ---------------------------------------------------------------------------- // DO NOT EDIT THIS FILE diff --git a/api/types/volume/volumes_list.go b/api/types/volume/volumes_list.go index 833dad9330..e071ca08fc 100644 --- a/api/types/volume/volumes_list.go +++ b/api/types/volume/volumes_list.go @@ -1,4 +1,4 @@ -package volume +package volume // import "github.com/docker/docker/api/types/volume" // ---------------------------------------------------------------------------- // DO NOT EDIT THIS FILE diff --git a/builder/builder.go b/builder/builder.go index b7d5edea0a..12f3daa1a5 100644 --- a/builder/builder.go +++ b/builder/builder.go @@ -2,7 +2,7 @@ // // Historically, only server-side Dockerfile interpreters existed. // This package allows for other implementations of Docker builders. -package builder +package builder // import "github.com/docker/docker/builder" import ( "io" diff --git a/builder/dockerfile/buildargs.go b/builder/dockerfile/buildargs.go index c8f34a77a1..93794044e9 100644 --- a/builder/dockerfile/buildargs.go +++ b/builder/dockerfile/buildargs.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "fmt" diff --git a/builder/dockerfile/buildargs_test.go b/builder/dockerfile/buildargs_test.go index 241bc84470..c46dd7d49e 100644 --- a/builder/dockerfile/buildargs_test.go +++ b/builder/dockerfile/buildargs_test.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "bytes" diff --git a/builder/dockerfile/builder.go b/builder/dockerfile/builder.go index a32210ef96..d20bc0403a 100644 --- a/builder/dockerfile/builder.go +++ b/builder/dockerfile/builder.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "bytes" diff --git a/builder/dockerfile/builder_test.go b/builder/dockerfile/builder_test.go index 5fedca0fdd..a3a1f122f9 100644 --- a/builder/dockerfile/builder_test.go +++ b/builder/dockerfile/builder_test.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "strings" diff --git a/builder/dockerfile/builder_unix.go b/builder/dockerfile/builder_unix.go index 91896af5f8..c4453459b3 100644 --- a/builder/dockerfile/builder_unix.go +++ b/builder/dockerfile/builder_unix.go @@ -1,6 +1,6 @@ // +build !windows -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" func defaultShellForOS(os string) []string { return []string{"/bin/sh", "-c"} diff --git a/builder/dockerfile/builder_windows.go b/builder/dockerfile/builder_windows.go index fa573a0e9c..fbafa52aec 100644 --- a/builder/dockerfile/builder_windows.go +++ b/builder/dockerfile/builder_windows.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" func defaultShellForOS(os string) []string { if os == "linux" { diff --git a/builder/dockerfile/clientsession.go b/builder/dockerfile/clientsession.go index 2ef5bf5462..b4bea50223 100644 --- a/builder/dockerfile/clientsession.go +++ b/builder/dockerfile/clientsession.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "time" diff --git a/builder/dockerfile/command/command.go b/builder/dockerfile/command/command.go index f23c6874b5..303b59096b 100644 --- a/builder/dockerfile/command/command.go +++ b/builder/dockerfile/command/command.go @@ -1,5 +1,5 @@ // Package command contains the set of Dockerfile commands. -package command +package command // import "github.com/docker/docker/builder/dockerfile/command" // Define constants for the command strings const ( diff --git a/builder/dockerfile/containerbackend.go b/builder/dockerfile/containerbackend.go index 523cc5076a..a97d3221e9 100644 --- a/builder/dockerfile/containerbackend.go +++ b/builder/dockerfile/containerbackend.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "fmt" diff --git a/builder/dockerfile/copy.go b/builder/dockerfile/copy.go index 92ba0069dd..f0b27b4c68 100644 --- a/builder/dockerfile/copy.go +++ b/builder/dockerfile/copy.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "archive/tar" diff --git a/builder/dockerfile/copy_test.go b/builder/dockerfile/copy_test.go index 87c5675d90..da8e0711ac 100644 --- a/builder/dockerfile/copy_test.go +++ b/builder/dockerfile/copy_test.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "net/http" diff --git a/builder/dockerfile/copy_unix.go b/builder/dockerfile/copy_unix.go index 8833700554..15453452e5 100644 --- a/builder/dockerfile/copy_unix.go +++ b/builder/dockerfile/copy_unix.go @@ -1,6 +1,6 @@ // +build !windows -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "os" diff --git a/builder/dockerfile/copy_windows.go b/builder/dockerfile/copy_windows.go index f7fc6e0329..907c34407c 100644 --- a/builder/dockerfile/copy_windows.go +++ b/builder/dockerfile/copy_windows.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "errors" diff --git a/builder/dockerfile/dispatchers.go b/builder/dockerfile/dispatchers.go index 8e37097dd4..828c91d0c8 100644 --- a/builder/dockerfile/dispatchers.go +++ b/builder/dockerfile/dispatchers.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" // This file contains the dispatchers for each command. Note that // `nullDispatch` is not actually a command, but support for commands we parse diff --git a/builder/dockerfile/dispatchers_test.go b/builder/dockerfile/dispatchers_test.go index 0cdf2ad437..6b8232e108 100644 --- a/builder/dockerfile/dispatchers_test.go +++ b/builder/dockerfile/dispatchers_test.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "bytes" diff --git a/builder/dockerfile/dispatchers_unix.go b/builder/dockerfile/dispatchers_unix.go index 6a25b598b8..b3ba380323 100644 --- a/builder/dockerfile/dispatchers_unix.go +++ b/builder/dockerfile/dispatchers_unix.go @@ -1,6 +1,6 @@ // +build !windows -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "errors" diff --git a/builder/dockerfile/dispatchers_unix_test.go b/builder/dockerfile/dispatchers_unix_test.go index 053a38faa1..c2aebfbb27 100644 --- a/builder/dockerfile/dispatchers_unix_test.go +++ b/builder/dockerfile/dispatchers_unix_test.go @@ -1,6 +1,6 @@ // +build !windows -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "runtime" diff --git a/builder/dockerfile/dispatchers_windows.go b/builder/dockerfile/dispatchers_windows.go index 256ebda9af..7824d1169b 100644 --- a/builder/dockerfile/dispatchers_windows.go +++ b/builder/dockerfile/dispatchers_windows.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "errors" diff --git a/builder/dockerfile/dispatchers_windows_test.go b/builder/dockerfile/dispatchers_windows_test.go index cb0b5446f9..ae72092c4f 100644 --- a/builder/dockerfile/dispatchers_windows_test.go +++ b/builder/dockerfile/dispatchers_windows_test.go @@ -1,6 +1,6 @@ // +build windows -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import "testing" diff --git a/builder/dockerfile/evaluator.go b/builder/dockerfile/evaluator.go index 8a370d2d5d..74264faf2e 100644 --- a/builder/dockerfile/evaluator.go +++ b/builder/dockerfile/evaluator.go @@ -17,7 +17,7 @@ // before and after each step, such as creating an image ID and removing temporary // containers and images. Note that ONBUILD creates a kinda-sorta "sub run" which // includes its own set of steps (usually only one of them). -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "reflect" diff --git a/builder/dockerfile/evaluator_test.go b/builder/dockerfile/evaluator_test.go index fc5512d0a3..4510133e7c 100644 --- a/builder/dockerfile/evaluator_test.go +++ b/builder/dockerfile/evaluator_test.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "testing" diff --git a/builder/dockerfile/imagecontext.go b/builder/dockerfile/imagecontext.go index a22b60b2e5..f83528e104 100644 --- a/builder/dockerfile/imagecontext.go +++ b/builder/dockerfile/imagecontext.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "runtime" diff --git a/builder/dockerfile/imageprobe.go b/builder/dockerfile/imageprobe.go index 1a6df69385..6960bf8897 100644 --- a/builder/dockerfile/imageprobe.go +++ b/builder/dockerfile/imageprobe.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "github.com/docker/docker/api/types/container" diff --git a/builder/dockerfile/instructions/bflag.go b/builder/dockerfile/instructions/bflag.go index 7a81e3c136..00b9610b38 100644 --- a/builder/dockerfile/instructions/bflag.go +++ b/builder/dockerfile/instructions/bflag.go @@ -1,4 +1,4 @@ -package instructions +package instructions // import "github.com/docker/docker/builder/dockerfile/instructions" import ( "fmt" diff --git a/builder/dockerfile/instructions/bflag_test.go b/builder/dockerfile/instructions/bflag_test.go index b194ba785f..d0d203a009 100644 --- a/builder/dockerfile/instructions/bflag_test.go +++ b/builder/dockerfile/instructions/bflag_test.go @@ -1,4 +1,4 @@ -package instructions +package instructions // import "github.com/docker/docker/builder/dockerfile/instructions" import ( "testing" diff --git a/builder/dockerfile/instructions/commands.go b/builder/dockerfile/instructions/commands.go index 0863e6b50a..ef435b27b3 100644 --- a/builder/dockerfile/instructions/commands.go +++ b/builder/dockerfile/instructions/commands.go @@ -1,4 +1,4 @@ -package instructions +package instructions // import "github.com/docker/docker/builder/dockerfile/instructions" import ( "errors" diff --git a/builder/dockerfile/instructions/errors_unix.go b/builder/dockerfile/instructions/errors_unix.go index 0b03b34cd1..2bd11659e4 100644 --- a/builder/dockerfile/instructions/errors_unix.go +++ b/builder/dockerfile/instructions/errors_unix.go @@ -1,6 +1,6 @@ // +build !windows -package instructions +package instructions // import "github.com/docker/docker/builder/dockerfile/instructions" import "fmt" diff --git a/builder/dockerfile/instructions/errors_windows.go b/builder/dockerfile/instructions/errors_windows.go index a4843c5b6a..be8dbee065 100644 --- a/builder/dockerfile/instructions/errors_windows.go +++ b/builder/dockerfile/instructions/errors_windows.go @@ -1,4 +1,4 @@ -package instructions +package instructions // import "github.com/docker/docker/builder/dockerfile/instructions" import ( "fmt" diff --git a/builder/dockerfile/instructions/parse.go b/builder/dockerfile/instructions/parse.go index 0f7c69d263..9226f4d46e 100644 --- a/builder/dockerfile/instructions/parse.go +++ b/builder/dockerfile/instructions/parse.go @@ -1,4 +1,4 @@ -package instructions +package instructions // import "github.com/docker/docker/builder/dockerfile/instructions" import ( "fmt" diff --git a/builder/dockerfile/instructions/parse_test.go b/builder/dockerfile/instructions/parse_test.go index 6ac3dfda13..ffd6d4f45c 100644 --- a/builder/dockerfile/instructions/parse_test.go +++ b/builder/dockerfile/instructions/parse_test.go @@ -1,4 +1,4 @@ -package instructions +package instructions // import "github.com/docker/docker/builder/dockerfile/instructions" import ( "strings" diff --git a/builder/dockerfile/instructions/support.go b/builder/dockerfile/instructions/support.go index beefe775ce..1d649a77af 100644 --- a/builder/dockerfile/instructions/support.go +++ b/builder/dockerfile/instructions/support.go @@ -1,4 +1,4 @@ -package instructions +package instructions // import "github.com/docker/docker/builder/dockerfile/instructions" import "strings" diff --git a/builder/dockerfile/instructions/support_test.go b/builder/dockerfile/instructions/support_test.go index 2b888dca0d..5c79e383db 100644 --- a/builder/dockerfile/instructions/support_test.go +++ b/builder/dockerfile/instructions/support_test.go @@ -1,4 +1,4 @@ -package instructions +package instructions // import "github.com/docker/docker/builder/dockerfile/instructions" import "testing" diff --git a/builder/dockerfile/internals.go b/builder/dockerfile/internals.go index 5ce5f89744..3c636fed77 100644 --- a/builder/dockerfile/internals.go +++ b/builder/dockerfile/internals.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" // internals for handling commands. Covers many areas and a lot of // non-contiguous functionality. Please read the comments. diff --git a/builder/dockerfile/internals_linux.go b/builder/dockerfile/internals_linux.go index 1314779248..1014b16a21 100644 --- a/builder/dockerfile/internals_linux.go +++ b/builder/dockerfile/internals_linux.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "path/filepath" diff --git a/builder/dockerfile/internals_linux_test.go b/builder/dockerfile/internals_linux_test.go index dd23a33307..08067f8573 100644 --- a/builder/dockerfile/internals_linux_test.go +++ b/builder/dockerfile/internals_linux_test.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "os" diff --git a/builder/dockerfile/internals_test.go b/builder/dockerfile/internals_test.go index 04c8c4bac8..24103ecd8e 100644 --- a/builder/dockerfile/internals_test.go +++ b/builder/dockerfile/internals_test.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "fmt" diff --git a/builder/dockerfile/internals_windows.go b/builder/dockerfile/internals_windows.go index 931df2f02a..26978b48cf 100644 --- a/builder/dockerfile/internals_windows.go +++ b/builder/dockerfile/internals_windows.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import "github.com/docker/docker/pkg/idtools" diff --git a/builder/dockerfile/internals_windows_test.go b/builder/dockerfile/internals_windows_test.go index 6ecc37ba63..08f394ac60 100644 --- a/builder/dockerfile/internals_windows_test.go +++ b/builder/dockerfile/internals_windows_test.go @@ -1,6 +1,6 @@ // +build windows -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "fmt" diff --git a/builder/dockerfile/metrics.go b/builder/dockerfile/metrics.go index 5aa953aa79..ceafa7ad62 100644 --- a/builder/dockerfile/metrics.go +++ b/builder/dockerfile/metrics.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "github.com/docker/go-metrics" diff --git a/builder/dockerfile/mockbackend_test.go b/builder/dockerfile/mockbackend_test.go index 6c19f17ebc..bf76c0e2e0 100644 --- a/builder/dockerfile/mockbackend_test.go +++ b/builder/dockerfile/mockbackend_test.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "encoding/json" diff --git a/builder/dockerfile/parser/json_test.go b/builder/dockerfile/parser/json_test.go index d4489191da..eddf50bd3f 100644 --- a/builder/dockerfile/parser/json_test.go +++ b/builder/dockerfile/parser/json_test.go @@ -1,4 +1,4 @@ -package parser +package parser // import "github.com/docker/docker/builder/dockerfile/parser" import ( "testing" diff --git a/builder/dockerfile/parser/line_parsers.go b/builder/dockerfile/parser/line_parsers.go index 2c375b74e4..94091f5f6b 100644 --- a/builder/dockerfile/parser/line_parsers.go +++ b/builder/dockerfile/parser/line_parsers.go @@ -1,4 +1,4 @@ -package parser +package parser // import "github.com/docker/docker/builder/dockerfile/parser" // line parsers are dispatch calls that parse a single unit of text into a // Node object which contains the whole statement. Dockerfiles have varied diff --git a/builder/dockerfile/parser/line_parsers_test.go b/builder/dockerfile/parser/line_parsers_test.go index cf0b21bb51..8ce6a7ad6f 100644 --- a/builder/dockerfile/parser/line_parsers_test.go +++ b/builder/dockerfile/parser/line_parsers_test.go @@ -1,4 +1,4 @@ -package parser +package parser // import "github.com/docker/docker/builder/dockerfile/parser" import ( "testing" diff --git a/builder/dockerfile/parser/parser.go b/builder/dockerfile/parser/parser.go index a4bce1cca6..277176ee1c 100644 --- a/builder/dockerfile/parser/parser.go +++ b/builder/dockerfile/parser/parser.go @@ -1,5 +1,5 @@ // Package parser implements a parser and parse tree dumper for Dockerfiles. -package parser +package parser // import "github.com/docker/docker/builder/dockerfile/parser" import ( "bufio" diff --git a/builder/dockerfile/parser/parser_test.go b/builder/dockerfile/parser/parser_test.go index 7bfbee92e4..807ac1b097 100644 --- a/builder/dockerfile/parser/parser_test.go +++ b/builder/dockerfile/parser/parser_test.go @@ -1,4 +1,4 @@ -package parser +package parser // import "github.com/docker/docker/builder/dockerfile/parser" import ( "bufio" diff --git a/builder/dockerfile/parser/split_command.go b/builder/dockerfile/parser/split_command.go index 171f454f6d..6f4fbf5884 100644 --- a/builder/dockerfile/parser/split_command.go +++ b/builder/dockerfile/parser/split_command.go @@ -1,4 +1,4 @@ -package parser +package parser // import "github.com/docker/docker/builder/dockerfile/parser" import ( "strings" diff --git a/builder/dockerfile/shell/equal_env_unix.go b/builder/dockerfile/shell/equal_env_unix.go index 6e3f6b890e..ac97a1e16e 100644 --- a/builder/dockerfile/shell/equal_env_unix.go +++ b/builder/dockerfile/shell/equal_env_unix.go @@ -1,6 +1,6 @@ // +build !windows -package shell +package shell // import "github.com/docker/docker/builder/dockerfile/shell" // EqualEnvKeys compare two strings and returns true if they are equal. On // Windows this comparison is case insensitive. diff --git a/builder/dockerfile/shell/equal_env_windows.go b/builder/dockerfile/shell/equal_env_windows.go index 7780fb67e8..4baa771bdf 100644 --- a/builder/dockerfile/shell/equal_env_windows.go +++ b/builder/dockerfile/shell/equal_env_windows.go @@ -1,4 +1,4 @@ -package shell +package shell // import "github.com/docker/docker/builder/dockerfile/shell" import "strings" diff --git a/builder/dockerfile/shell/lex.go b/builder/dockerfile/shell/lex.go index e4a5a36942..bd3fac525a 100644 --- a/builder/dockerfile/shell/lex.go +++ b/builder/dockerfile/shell/lex.go @@ -1,4 +1,4 @@ -package shell +package shell // import "github.com/docker/docker/builder/dockerfile/shell" import ( "bytes" diff --git a/builder/dockerfile/shell/lex_test.go b/builder/dockerfile/shell/lex_test.go index 14d1a7d12a..6932a44e3d 100644 --- a/builder/dockerfile/shell/lex_test.go +++ b/builder/dockerfile/shell/lex_test.go @@ -1,4 +1,4 @@ -package shell +package shell // import "github.com/docker/docker/builder/dockerfile/shell" import ( "bufio" diff --git a/builder/dockerfile/utils_test.go b/builder/dockerfile/utils_test.go index 80a3f1babf..3d615f3460 100644 --- a/builder/dockerfile/utils_test.go +++ b/builder/dockerfile/utils_test.go @@ -1,4 +1,4 @@ -package dockerfile +package dockerfile // import "github.com/docker/docker/builder/dockerfile" import ( "io/ioutil" diff --git a/builder/dockerignore/dockerignore.go b/builder/dockerignore/dockerignore.go index cc22381339..57f224afc8 100644 --- a/builder/dockerignore/dockerignore.go +++ b/builder/dockerignore/dockerignore.go @@ -1,4 +1,4 @@ -package dockerignore +package dockerignore // import "github.com/docker/docker/builder/dockerignore" import ( "bufio" diff --git a/builder/dockerignore/dockerignore_test.go b/builder/dockerignore/dockerignore_test.go index bda38745cc..06186cc120 100644 --- a/builder/dockerignore/dockerignore_test.go +++ b/builder/dockerignore/dockerignore_test.go @@ -1,4 +1,4 @@ -package dockerignore +package dockerignore // import "github.com/docker/docker/builder/dockerignore" import ( "fmt" diff --git a/builder/fscache/fscache.go b/builder/fscache/fscache.go index 679d5e457e..4c00be4289 100644 --- a/builder/fscache/fscache.go +++ b/builder/fscache/fscache.go @@ -1,4 +1,4 @@ -package fscache +package fscache // import "github.com/docker/docker/builder/fscache" import ( "archive/tar" diff --git a/builder/fscache/fscache_test.go b/builder/fscache/fscache_test.go index c327ec72d3..7afee49ed5 100644 --- a/builder/fscache/fscache_test.go +++ b/builder/fscache/fscache_test.go @@ -1,4 +1,4 @@ -package fscache +package fscache // import "github.com/docker/docker/builder/fscache" import ( "io/ioutil" diff --git a/builder/fscache/naivedriver.go b/builder/fscache/naivedriver.go index f40ee570f4..053509aecf 100644 --- a/builder/fscache/naivedriver.go +++ b/builder/fscache/naivedriver.go @@ -1,4 +1,4 @@ -package fscache +package fscache // import "github.com/docker/docker/builder/fscache" import ( "os" diff --git a/builder/remotecontext/archive.go b/builder/remotecontext/archive.go index c670235b61..6d247f945d 100644 --- a/builder/remotecontext/archive.go +++ b/builder/remotecontext/archive.go @@ -1,4 +1,4 @@ -package remotecontext +package remotecontext // import "github.com/docker/docker/builder/remotecontext" import ( "io" diff --git a/builder/remotecontext/detect.go b/builder/remotecontext/detect.go index fe5cd967fb..af4e20f886 100644 --- a/builder/remotecontext/detect.go +++ b/builder/remotecontext/detect.go @@ -1,4 +1,4 @@ -package remotecontext +package remotecontext // import "github.com/docker/docker/builder/remotecontext" import ( "bufio" diff --git a/builder/remotecontext/detect_test.go b/builder/remotecontext/detect_test.go index 3d1ebd1c3f..04b7686c7a 100644 --- a/builder/remotecontext/detect_test.go +++ b/builder/remotecontext/detect_test.go @@ -1,4 +1,4 @@ -package remotecontext +package remotecontext // import "github.com/docker/docker/builder/remotecontext" import ( "errors" diff --git a/builder/remotecontext/filehash.go b/builder/remotecontext/filehash.go index 417230297b..3565dd8279 100644 --- a/builder/remotecontext/filehash.go +++ b/builder/remotecontext/filehash.go @@ -1,4 +1,4 @@ -package remotecontext +package remotecontext // import "github.com/docker/docker/builder/remotecontext" import ( "archive/tar" diff --git a/builder/remotecontext/generate.go b/builder/remotecontext/generate.go index 0b52d49926..84c1b3b5ea 100644 --- a/builder/remotecontext/generate.go +++ b/builder/remotecontext/generate.go @@ -1,3 +1,3 @@ -package remotecontext +package remotecontext // import "github.com/docker/docker/builder/remotecontext" //go:generate protoc --gogoslick_out=. tarsum.proto diff --git a/builder/remotecontext/git.go b/builder/remotecontext/git.go index f6fc0bc3fb..1583ca28d0 100644 --- a/builder/remotecontext/git.go +++ b/builder/remotecontext/git.go @@ -1,4 +1,4 @@ -package remotecontext +package remotecontext // import "github.com/docker/docker/builder/remotecontext" import ( "os" diff --git a/builder/remotecontext/git/gitutils.go b/builder/remotecontext/git/gitutils.go index 67cff594ab..77a45beff3 100644 --- a/builder/remotecontext/git/gitutils.go +++ b/builder/remotecontext/git/gitutils.go @@ -1,4 +1,4 @@ -package git +package git // import "github.com/docker/docker/builder/remotecontext/git" import ( "io/ioutil" diff --git a/builder/remotecontext/git/gitutils_test.go b/builder/remotecontext/git/gitutils_test.go index fd58d6bd98..4f4d833508 100644 --- a/builder/remotecontext/git/gitutils_test.go +++ b/builder/remotecontext/git/gitutils_test.go @@ -1,4 +1,4 @@ -package git +package git // import "github.com/docker/docker/builder/remotecontext/git" import ( "fmt" diff --git a/builder/remotecontext/lazycontext.go b/builder/remotecontext/lazycontext.go index 08b8058549..442cecad85 100644 --- a/builder/remotecontext/lazycontext.go +++ b/builder/remotecontext/lazycontext.go @@ -1,4 +1,4 @@ -package remotecontext +package remotecontext // import "github.com/docker/docker/builder/remotecontext" import ( "encoding/hex" diff --git a/builder/remotecontext/mimetype.go b/builder/remotecontext/mimetype.go index 083d609978..e8a6210e9c 100644 --- a/builder/remotecontext/mimetype.go +++ b/builder/remotecontext/mimetype.go @@ -1,4 +1,4 @@ -package remotecontext +package remotecontext // import "github.com/docker/docker/builder/remotecontext" import ( "mime" diff --git a/builder/remotecontext/mimetype_test.go b/builder/remotecontext/mimetype_test.go index 8c00ec2860..ff097c2e7b 100644 --- a/builder/remotecontext/mimetype_test.go +++ b/builder/remotecontext/mimetype_test.go @@ -1,4 +1,4 @@ -package remotecontext +package remotecontext // import "github.com/docker/docker/builder/remotecontext" import ( "testing" diff --git a/builder/remotecontext/remote.go b/builder/remotecontext/remote.go index b67914cc11..1fb80549b8 100644 --- a/builder/remotecontext/remote.go +++ b/builder/remotecontext/remote.go @@ -1,4 +1,4 @@ -package remotecontext +package remotecontext // import "github.com/docker/docker/builder/remotecontext" import ( "bytes" diff --git a/builder/remotecontext/remote_test.go b/builder/remotecontext/remote_test.go index 35b105f550..3983bd1b6c 100644 --- a/builder/remotecontext/remote_test.go +++ b/builder/remotecontext/remote_test.go @@ -1,4 +1,4 @@ -package remotecontext +package remotecontext // import "github.com/docker/docker/builder/remotecontext" import ( "bytes" diff --git a/builder/remotecontext/tarsum.go b/builder/remotecontext/tarsum.go index 78f7470b37..9e8c7d6072 100644 --- a/builder/remotecontext/tarsum.go +++ b/builder/remotecontext/tarsum.go @@ -1,4 +1,4 @@ -package remotecontext +package remotecontext // import "github.com/docker/docker/builder/remotecontext" import ( "os" diff --git a/builder/remotecontext/tarsum_test.go b/builder/remotecontext/tarsum_test.go index 9395460916..3466484981 100644 --- a/builder/remotecontext/tarsum_test.go +++ b/builder/remotecontext/tarsum_test.go @@ -1,4 +1,4 @@ -package remotecontext +package remotecontext // import "github.com/docker/docker/builder/remotecontext" import ( "io/ioutil" diff --git a/builder/remotecontext/utils_test.go b/builder/remotecontext/utils_test.go index 1e23ab4f73..6a4c707a6e 100644 --- a/builder/remotecontext/utils_test.go +++ b/builder/remotecontext/utils_test.go @@ -1,4 +1,4 @@ -package remotecontext +package remotecontext // import "github.com/docker/docker/builder/remotecontext" import ( "io/ioutil" diff --git a/cli/cobra.go b/cli/cobra.go index c7bb39c43d..da52430360 100644 --- a/cli/cobra.go +++ b/cli/cobra.go @@ -1,4 +1,4 @@ -package cli +package cli // import "github.com/docker/docker/cli" import ( "fmt" diff --git a/cli/config/configdir.go b/cli/config/configdir.go index de22577811..4bef4e104d 100644 --- a/cli/config/configdir.go +++ b/cli/config/configdir.go @@ -1,4 +1,4 @@ -package config +package config // import "github.com/docker/docker/cli/config" import ( "os" diff --git a/cli/debug/debug.go b/cli/debug/debug.go index b00ea63ad8..2303e15c99 100644 --- a/cli/debug/debug.go +++ b/cli/debug/debug.go @@ -1,4 +1,4 @@ -package debug +package debug // import "github.com/docker/docker/cli/debug" import ( "os" diff --git a/cli/debug/debug_test.go b/cli/debug/debug_test.go index 903115283c..5b6d788a39 100644 --- a/cli/debug/debug_test.go +++ b/cli/debug/debug_test.go @@ -1,4 +1,4 @@ -package debug +package debug // import "github.com/docker/docker/cli/debug" import ( "os" diff --git a/cli/error.go b/cli/error.go index 62f62433b8..ea7c0eb506 100644 --- a/cli/error.go +++ b/cli/error.go @@ -1,4 +1,4 @@ -package cli +package cli // import "github.com/docker/docker/cli" import ( "fmt" diff --git a/cli/required.go b/cli/required.go index d56bc213ad..e1ff02d2e9 100644 --- a/cli/required.go +++ b/cli/required.go @@ -1,4 +1,4 @@ -package cli +package cli // import "github.com/docker/docker/cli" import ( "strings" diff --git a/client/build_prune.go b/client/build_prune.go index ccab115d33..3ad07ccb85 100644 --- a/client/build_prune.go +++ b/client/build_prune.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/checkpoint_create.go b/client/checkpoint_create.go index 0effe498be..6441ed2501 100644 --- a/client/checkpoint_create.go +++ b/client/checkpoint_create.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "github.com/docker/docker/api/types" diff --git a/client/checkpoint_create_test.go b/client/checkpoint_create_test.go index 96e5187618..bd3e731e67 100644 --- a/client/checkpoint_create_test.go +++ b/client/checkpoint_create_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/checkpoint_delete.go b/client/checkpoint_delete.go index e6e75588b1..5b97c35c6b 100644 --- a/client/checkpoint_delete.go +++ b/client/checkpoint_delete.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/checkpoint_delete_test.go b/client/checkpoint_delete_test.go index a78b050487..6effb27686 100644 --- a/client/checkpoint_delete_test.go +++ b/client/checkpoint_delete_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/checkpoint_list.go b/client/checkpoint_list.go index 9835bad5ca..8ba1ddff7f 100644 --- a/client/checkpoint_list.go +++ b/client/checkpoint_list.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/checkpoint_list_test.go b/client/checkpoint_list_test.go index 11426ede44..1851435ca0 100644 --- a/client/checkpoint_list_test.go +++ b/client/checkpoint_list_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/client.go b/client/client.go index 893124853f..ab208c319b 100644 --- a/client/client.go +++ b/client/client.go @@ -39,7 +39,7 @@ For example, to list running containers (the equivalent of "docker ps"): } */ -package client +package client // import "github.com/docker/docker/client" import ( "errors" diff --git a/client/client_mock_test.go b/client/client_mock_test.go index e75c3ecbfc..390a1eed7d 100644 --- a/client/client_mock_test.go +++ b/client/client_mock_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/client_test.go b/client/client_test.go index cb38d4da38..59b08bd4c3 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/client_unix.go b/client/client_unix.go index eba8d909a9..c5e887e277 100644 --- a/client/client_unix.go +++ b/client/client_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd openbsd darwin -package client +package client // import "github.com/docker/docker/client" // DefaultDockerHost defines os specific default if DOCKER_HOST is unset const DefaultDockerHost = "unix:///var/run/docker.sock" diff --git a/client/client_windows.go b/client/client_windows.go index 07c0c7a774..45d8c7c9e6 100644 --- a/client/client_windows.go +++ b/client/client_windows.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" // DefaultDockerHost defines os specific default if DOCKER_HOST is unset const DefaultDockerHost = "npipe:////./pipe/docker_engine" diff --git a/client/config_create.go b/client/config_create.go index bc4a952b2f..b6d15b70e4 100644 --- a/client/config_create.go +++ b/client/config_create.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/config_create_test.go b/client/config_create_test.go index 000eaf1cba..3f3cb3fc56 100644 --- a/client/config_create_test.go +++ b/client/config_create_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/config_inspect.go b/client/config_inspect.go index b44d6fdd7e..b49fdf568a 100644 --- a/client/config_inspect.go +++ b/client/config_inspect.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/config_inspect_test.go b/client/config_inspect_test.go index fab0c286f5..18776a90a4 100644 --- a/client/config_inspect_test.go +++ b/client/config_inspect_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/config_list.go b/client/config_list.go index 57febc9ffb..b9d2632f6a 100644 --- a/client/config_list.go +++ b/client/config_list.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/config_list_test.go b/client/config_list_test.go index 4fe05469fe..4b4a5e84ce 100644 --- a/client/config_list_test.go +++ b/client/config_list_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/config_remove.go b/client/config_remove.go index e025d44f79..9c8f293f3e 100644 --- a/client/config_remove.go +++ b/client/config_remove.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import "golang.org/x/net/context" diff --git a/client/config_remove_test.go b/client/config_remove_test.go index f2a9feea74..290395aae5 100644 --- a/client/config_remove_test.go +++ b/client/config_remove_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/config_update.go b/client/config_update.go index 823751bb86..6b24024cd1 100644 --- a/client/config_update.go +++ b/client/config_update.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/config_update_test.go b/client/config_update_test.go index 799e544da7..99f2e173c2 100644 --- a/client/config_update_test.go +++ b/client/config_update_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_attach.go b/client/container_attach.go index 0fdf3ed0ce..1a2a431975 100644 --- a/client/container_attach.go +++ b/client/container_attach.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/container_commit.go b/client/container_commit.go index b3b16abfd1..95219beb17 100644 --- a/client/container_commit.go +++ b/client/container_commit.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/container_commit_test.go b/client/container_commit_test.go index 6947ed3861..918734a87b 100644 --- a/client/container_commit_test.go +++ b/client/container_commit_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_copy.go b/client/container_copy.go index 6985036df8..036298c17c 100644 --- a/client/container_copy.go +++ b/client/container_copy.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/base64" diff --git a/client/container_copy_test.go b/client/container_copy_test.go index 706711ece0..8fc3445d50 100644 --- a/client/container_copy_test.go +++ b/client/container_copy_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_create.go b/client/container_create.go index bd817e7fd1..0af82a19ec 100644 --- a/client/container_create.go +++ b/client/container_create.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/container_create_test.go b/client/container_create_test.go index 9464dc6243..6ad6fda09b 100644 --- a/client/container_create_test.go +++ b/client/container_create_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_diff.go b/client/container_diff.go index 884dc9feef..f03ebf1da3 100644 --- a/client/container_diff.go +++ b/client/container_diff.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/container_diff_test.go b/client/container_diff_test.go index 57dd73e66d..5246f0607e 100644 --- a/client/container_diff_test.go +++ b/client/container_diff_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_exec.go b/client/container_exec.go index 29670d02e6..59db8a90fb 100644 --- a/client/container_exec.go +++ b/client/container_exec.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/container_exec_test.go b/client/container_exec_test.go index 0e296a50ad..13cf889885 100644 --- a/client/container_exec_test.go +++ b/client/container_exec_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_export.go b/client/container_export.go index 52194f3d34..f4c2bee368 100644 --- a/client/container_export.go +++ b/client/container_export.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "io" diff --git a/client/container_export_test.go b/client/container_export_test.go index 5849fe9252..5d41a45e19 100644 --- a/client/container_export_test.go +++ b/client/container_export_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_inspect.go b/client/container_inspect.go index a15db14be8..1ec45e823f 100644 --- a/client/container_inspect.go +++ b/client/container_inspect.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_inspect_test.go b/client/container_inspect_test.go index 37259e40bd..b181053a2b 100644 --- a/client/container_inspect_test.go +++ b/client/container_inspect_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_kill.go b/client/container_kill.go index 29f80c73ad..c5a9fe75b2 100644 --- a/client/container_kill.go +++ b/client/container_kill.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/container_kill_test.go b/client/container_kill_test.go index 9477b0abd2..a4a1bfedf4 100644 --- a/client/container_kill_test.go +++ b/client/container_kill_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_list.go b/client/container_list.go index 4398912197..cd2e13835b 100644 --- a/client/container_list.go +++ b/client/container_list.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/container_list_test.go b/client/container_list_test.go index e41c6874b5..5ca4c840da 100644 --- a/client/container_list_test.go +++ b/client/container_list_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_logs.go b/client/container_logs.go index 562c8b4bcc..01d88a322f 100644 --- a/client/container_logs.go +++ b/client/container_logs.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "io" diff --git a/client/container_logs_test.go b/client/container_logs_test.go index 41849cf576..2ad76df694 100644 --- a/client/container_logs_test.go +++ b/client/container_logs_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_pause.go b/client/container_pause.go index 412067a782..fa0a9011a3 100644 --- a/client/container_pause.go +++ b/client/container_pause.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import "golang.org/x/net/context" diff --git a/client/container_pause_test.go b/client/container_pause_test.go index 0ee2f05d7e..ccf619c4d9 100644 --- a/client/container_pause_test.go +++ b/client/container_pause_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_prune.go b/client/container_prune.go index b582170867..4129841d49 100644 --- a/client/container_prune.go +++ b/client/container_prune.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/container_prune_test.go b/client/container_prune_test.go index 8a1c63897b..1f8c22cbfe 100644 --- a/client/container_prune_test.go +++ b/client/container_prune_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_remove.go b/client/container_remove.go index 070108bf3e..c782914319 100644 --- a/client/container_remove.go +++ b/client/container_remove.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/container_remove_test.go b/client/container_remove_test.go index 0eab7ee518..0b1b64fa3a 100644 --- a/client/container_remove_test.go +++ b/client/container_remove_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_rename.go b/client/container_rename.go index 0e718da7c6..ad43e398d5 100644 --- a/client/container_rename.go +++ b/client/container_rename.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/container_rename_test.go b/client/container_rename_test.go index 732ebff5f7..9b5ca7fbcb 100644 --- a/client/container_rename_test.go +++ b/client/container_rename_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_resize.go b/client/container_resize.go index 66c3cc1940..8f1244e228 100644 --- a/client/container_resize.go +++ b/client/container_resize.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/container_resize_test.go b/client/container_resize_test.go index 5b2efecdce..d5f4363cc7 100644 --- a/client/container_resize_test.go +++ b/client/container_resize_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_restart.go b/client/container_restart.go index 74d7455f02..8c8085dcf2 100644 --- a/client/container_restart.go +++ b/client/container_restart.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/container_restart_test.go b/client/container_restart_test.go index 8c3cfd6a6f..f20d9699f3 100644 --- a/client/container_restart_test.go +++ b/client/container_restart_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_start.go b/client/container_start.go index b1f08de416..d06b637003 100644 --- a/client/container_start.go +++ b/client/container_start.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/container_start_test.go b/client/container_start_test.go index 5826fa8bc7..89018a808d 100644 --- a/client/container_start_test.go +++ b/client/container_start_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_stats.go b/client/container_stats.go index 4758c66e32..a7a2b8ec35 100644 --- a/client/container_stats.go +++ b/client/container_stats.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/container_stats_test.go b/client/container_stats_test.go index 7414f135c3..e16fcafb03 100644 --- a/client/container_stats_test.go +++ b/client/container_stats_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_stop.go b/client/container_stop.go index b5418ae8c8..ca316666a9 100644 --- a/client/container_stop.go +++ b/client/container_stop.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/container_stop_test.go b/client/container_stop_test.go index c32cd691c4..101625b0b4 100644 --- a/client/container_stop_test.go +++ b/client/container_stop_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_top.go b/client/container_top.go index 9689123a40..55841ce998 100644 --- a/client/container_top.go +++ b/client/container_top.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/container_top_test.go b/client/container_top_test.go index 68ccef505d..24f54613bf 100644 --- a/client/container_top_test.go +++ b/client/container_top_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_unpause.go b/client/container_unpause.go index 5c76211256..b75fb0c31e 100644 --- a/client/container_unpause.go +++ b/client/container_unpause.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import "golang.org/x/net/context" diff --git a/client/container_unpause_test.go b/client/container_unpause_test.go index 2c42727191..0c7fe8cb77 100644 --- a/client/container_unpause_test.go +++ b/client/container_unpause_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_update.go b/client/container_update.go index 5082f22dfa..218ec90fd9 100644 --- a/client/container_update.go +++ b/client/container_update.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/container_update_test.go b/client/container_update_test.go index 715bb7ca23..9f7c951ce2 100644 --- a/client/container_update_test.go +++ b/client/container_update_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/container_wait.go b/client/container_wait.go index 854c6c053b..87b0dc1afd 100644 --- a/client/container_wait.go +++ b/client/container_wait.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/container_wait_test.go b/client/container_wait_test.go index 7b8c9f0964..e25abe6499 100644 --- a/client/container_wait_test.go +++ b/client/container_wait_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/disk_usage.go b/client/disk_usage.go index 03c80b39af..831fd40e62 100644 --- a/client/disk_usage.go +++ b/client/disk_usage.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/disk_usage_test.go b/client/disk_usage_test.go index 51e622233e..615c1e6441 100644 --- a/client/disk_usage_test.go +++ b/client/disk_usage_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/distribution_inspect.go b/client/distribution_inspect.go index aa5bc6a6c6..5f55945c41 100644 --- a/client/distribution_inspect.go +++ b/client/distribution_inspect.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/distribution_inspect_test.go b/client/distribution_inspect_test.go index eff28d7ca7..af5de27e72 100644 --- a/client/distribution_inspect_test.go +++ b/client/distribution_inspect_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/http" diff --git a/client/errors.go b/client/errors.go index e41b728d3a..05c1246276 100644 --- a/client/errors.go +++ b/client/errors.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "fmt" diff --git a/client/events.go b/client/events.go index af47aefa74..d5d4dd8ac2 100644 --- a/client/events.go +++ b/client/events.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/events_test.go b/client/events_test.go index ba82d2f542..5ea6091359 100644 --- a/client/events_test.go +++ b/client/events_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/hijack.go b/client/hijack.go index d04cebdcf4..628adfda65 100644 --- a/client/hijack.go +++ b/client/hijack.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bufio" diff --git a/client/image_build.go b/client/image_build.go index cd0f54d138..97c9301c82 100644 --- a/client/image_build.go +++ b/client/image_build.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/base64" diff --git a/client/image_build_test.go b/client/image_build_test.go index 1e18b7bda8..ef329cefc0 100644 --- a/client/image_build_test.go +++ b/client/image_build_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/image_create.go b/client/image_create.go index fb5447b9b6..fe237508b1 100644 --- a/client/image_create.go +++ b/client/image_create.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "io" diff --git a/client/image_create_test.go b/client/image_create_test.go index 5c2edd2ad5..aa1d273483 100644 --- a/client/image_create_test.go +++ b/client/image_create_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/image_history.go b/client/image_history.go index 7b4babcba3..cf74723a03 100644 --- a/client/image_history.go +++ b/client/image_history.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/image_history_test.go b/client/image_history_test.go index 101bffd0c3..6b2eca214d 100644 --- a/client/image_history_test.go +++ b/client/image_history_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/image_import.go b/client/image_import.go index ab55ddbacb..dddbf9c629 100644 --- a/client/image_import.go +++ b/client/image_import.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "io" diff --git a/client/image_import_test.go b/client/image_import_test.go index 370ad5fbed..5f304c1af1 100644 --- a/client/image_import_test.go +++ b/client/image_import_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/image_inspect.go b/client/image_inspect.go index 1bc5919907..75057bf324 100644 --- a/client/image_inspect.go +++ b/client/image_inspect.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/image_inspect_test.go b/client/image_inspect_test.go index b5721f39fe..47910e9c52 100644 --- a/client/image_inspect_test.go +++ b/client/image_inspect_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/image_list.go b/client/image_list.go index f26464f67c..1e84a962da 100644 --- a/client/image_list.go +++ b/client/image_list.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/image_list_test.go b/client/image_list_test.go index 7c4a46414d..48e10fa105 100644 --- a/client/image_list_test.go +++ b/client/image_list_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/image_load.go b/client/image_load.go index 77aaf1af36..411567c0c9 100644 --- a/client/image_load.go +++ b/client/image_load.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "io" diff --git a/client/image_load_test.go b/client/image_load_test.go index 68dc14ff22..63809fb0f0 100644 --- a/client/image_load_test.go +++ b/client/image_load_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/image_prune.go b/client/image_prune.go index 5ef98b7f02..32ea9098c3 100644 --- a/client/image_prune.go +++ b/client/image_prune.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/image_prune_test.go b/client/image_prune_test.go index 453f84adee..f165e5c746 100644 --- a/client/image_prune_test.go +++ b/client/image_prune_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/image_pull.go b/client/image_pull.go index 92942d2e5b..ee5923a8f6 100644 --- a/client/image_pull.go +++ b/client/image_pull.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "io" diff --git a/client/image_pull_test.go b/client/image_pull_test.go index ab49d2d349..f23c131afd 100644 --- a/client/image_pull_test.go +++ b/client/image_pull_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/image_push.go b/client/image_push.go index 410d2fb91d..6fcc1626ec 100644 --- a/client/image_push.go +++ b/client/image_push.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "errors" diff --git a/client/image_push_test.go b/client/image_push_test.go index f93debf5bb..b006d4f3dc 100644 --- a/client/image_push_test.go +++ b/client/image_push_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/image_remove.go b/client/image_remove.go index 81d6c5438d..6d222a5077 100644 --- a/client/image_remove.go +++ b/client/image_remove.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/image_remove_test.go b/client/image_remove_test.go index 6149db7cb6..8f5aa0120d 100644 --- a/client/image_remove_test.go +++ b/client/image_remove_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/image_save.go b/client/image_save.go index ecac880a32..a919615966 100644 --- a/client/image_save.go +++ b/client/image_save.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "io" diff --git a/client/image_save_test.go b/client/image_save_test.go index 8f0cf88640..bf9d643cb9 100644 --- a/client/image_save_test.go +++ b/client/image_save_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/image_search.go b/client/image_search.go index 5566e92555..ba5072ad59 100644 --- a/client/image_search.go +++ b/client/image_search.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/image_search_test.go b/client/image_search_test.go index 191e7f403a..d4f9fff15f 100644 --- a/client/image_search_test.go +++ b/client/image_search_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/image_tag.go b/client/image_tag.go index 8924f71eb3..4399a3e9aa 100644 --- a/client/image_tag.go +++ b/client/image_tag.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/image_tag_test.go b/client/image_tag_test.go index f7a0ee331c..b8660c929b 100644 --- a/client/image_tag_test.go +++ b/client/image_tag_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/info.go b/client/info.go index ac07961224..3f6746c942 100644 --- a/client/info.go +++ b/client/info.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/info_test.go b/client/info_test.go index 79f23c8af2..de06ef7a68 100644 --- a/client/info_test.go +++ b/client/info_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/interface.go b/client/interface.go index 9fb8194fe0..e928e647a7 100644 --- a/client/interface.go +++ b/client/interface.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "io" diff --git a/client/interface_experimental.go b/client/interface_experimental.go index 51da98ecdd..236c1d6ca6 100644 --- a/client/interface_experimental.go +++ b/client/interface_experimental.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "github.com/docker/docker/api/types" diff --git a/client/interface_stable.go b/client/interface_stable.go index cc90a3cbb9..5502cd7426 100644 --- a/client/interface_stable.go +++ b/client/interface_stable.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" // APIClient is an interface that clients that talk with a docker server must implement. type APIClient interface { diff --git a/client/login.go b/client/login.go index 79219ff59c..fefb101ade 100644 --- a/client/login.go +++ b/client/login.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/network_connect.go b/client/network_connect.go index c022c17b5b..af4a61659b 100644 --- a/client/network_connect.go +++ b/client/network_connect.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "github.com/docker/docker/api/types" diff --git a/client/network_connect_test.go b/client/network_connect_test.go index 91b1a76676..28b1c0069c 100644 --- a/client/network_connect_test.go +++ b/client/network_connect_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/network_create.go b/client/network_create.go index 4067a541ff..fa1d301a4c 100644 --- a/client/network_create.go +++ b/client/network_create.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/network_create_test.go b/client/network_create_test.go index 0e2457f89c..eea5109ee5 100644 --- a/client/network_create_test.go +++ b/client/network_create_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/network_disconnect.go b/client/network_disconnect.go index 24b58e3c12..5fc75a9412 100644 --- a/client/network_disconnect.go +++ b/client/network_disconnect.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "github.com/docker/docker/api/types" diff --git a/client/network_disconnect_test.go b/client/network_disconnect_test.go index b54a2b1ccf..e092ccf20e 100644 --- a/client/network_disconnect_test.go +++ b/client/network_disconnect_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/network_inspect.go b/client/network_inspect.go index afabe65970..3308f18ded 100644 --- a/client/network_inspect.go +++ b/client/network_inspect.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/network_inspect_test.go b/client/network_inspect_test.go index 56399c7bc2..95fcb0d646 100644 --- a/client/network_inspect_test.go +++ b/client/network_inspect_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/network_list.go b/client/network_list.go index e566a93e23..9b424285eb 100644 --- a/client/network_list.go +++ b/client/network_list.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/network_list_test.go b/client/network_list_test.go index 4d443496ac..2604894cd1 100644 --- a/client/network_list_test.go +++ b/client/network_list_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/network_prune.go b/client/network_prune.go index 7352a7f0c5..d546f0c304 100644 --- a/client/network_prune.go +++ b/client/network_prune.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/network_prune_test.go b/client/network_prune_test.go index 3e4f5d0415..8bba3751e7 100644 --- a/client/network_prune_test.go +++ b/client/network_prune_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/network_remove.go b/client/network_remove.go index 0811b5b51c..c99de10c83 100644 --- a/client/network_remove.go +++ b/client/network_remove.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import "golang.org/x/net/context" diff --git a/client/network_remove_test.go b/client/network_remove_test.go index 2a7b9640c1..c8c9101591 100644 --- a/client/network_remove_test.go +++ b/client/network_remove_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/node_inspect.go b/client/node_inspect.go index 791d2c0066..454db9f17b 100644 --- a/client/node_inspect.go +++ b/client/node_inspect.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/node_inspect_test.go b/client/node_inspect_test.go index 6260da517d..2fcd0d6d94 100644 --- a/client/node_inspect_test.go +++ b/client/node_inspect_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/node_list.go b/client/node_list.go index fed22992c9..c613ad2197 100644 --- a/client/node_list.go +++ b/client/node_list.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/node_list_test.go b/client/node_list_test.go index 0251b5cce4..d227d98f9a 100644 --- a/client/node_list_test.go +++ b/client/node_list_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/node_remove.go b/client/node_remove.go index adbf52febb..7c1a757d31 100644 --- a/client/node_remove.go +++ b/client/node_remove.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/node_remove_test.go b/client/node_remove_test.go index f2f8adc4a3..f2921d882b 100644 --- a/client/node_remove_test.go +++ b/client/node_remove_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/node_update.go b/client/node_update.go index 3ca9760282..0b528a4703 100644 --- a/client/node_update.go +++ b/client/node_update.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/node_update_test.go b/client/node_update_test.go index 613ff104eb..f4db3ae057 100644 --- a/client/node_update_test.go +++ b/client/node_update_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/ping.go b/client/ping.go index 0b6e450da7..e2366276da 100644 --- a/client/ping.go +++ b/client/ping.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "path" diff --git a/client/ping_test.go b/client/ping_test.go index 7a4a1a9024..69ff86269d 100644 --- a/client/ping_test.go +++ b/client/ping_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "errors" diff --git a/client/plugin_create.go b/client/plugin_create.go index 27954aa573..51ef9c9945 100644 --- a/client/plugin_create.go +++ b/client/plugin_create.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "io" diff --git a/client/plugin_disable.go b/client/plugin_disable.go index 30467db742..8d8c41d226 100644 --- a/client/plugin_disable.go +++ b/client/plugin_disable.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/plugin_disable_test.go b/client/plugin_disable_test.go index a4de45be2d..104c6f8808 100644 --- a/client/plugin_disable_test.go +++ b/client/plugin_disable_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/plugin_enable.go b/client/plugin_enable.go index 95517c4b80..1f0f8f7340 100644 --- a/client/plugin_enable.go +++ b/client/plugin_enable.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/plugin_enable_test.go b/client/plugin_enable_test.go index b27681348f..64bb23877f 100644 --- a/client/plugin_enable_test.go +++ b/client/plugin_enable_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/plugin_inspect.go b/client/plugin_inspect.go index 6a6fc18dfe..8957a805ec 100644 --- a/client/plugin_inspect.go +++ b/client/plugin_inspect.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/plugin_inspect_test.go b/client/plugin_inspect_test.go index fae407eb9b..e3958b4427 100644 --- a/client/plugin_inspect_test.go +++ b/client/plugin_inspect_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/plugin_install.go b/client/plugin_install.go index ce3e0506e5..ae04387d5d 100644 --- a/client/plugin_install.go +++ b/client/plugin_install.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/plugin_list.go b/client/plugin_list.go index 78dbeb8be3..e49876621d 100644 --- a/client/plugin_list.go +++ b/client/plugin_list.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/plugin_list_test.go b/client/plugin_list_test.go index 6887079b42..bad5dd1381 100644 --- a/client/plugin_list_test.go +++ b/client/plugin_list_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/plugin_push.go b/client/plugin_push.go index 1e5f963251..33b38d843c 100644 --- a/client/plugin_push.go +++ b/client/plugin_push.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "io" diff --git a/client/plugin_push_test.go b/client/plugin_push_test.go index d9f70cdff8..8c5a4508db 100644 --- a/client/plugin_push_test.go +++ b/client/plugin_push_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/plugin_remove.go b/client/plugin_remove.go index b498c48203..b9e7d8e4a8 100644 --- a/client/plugin_remove.go +++ b/client/plugin_remove.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/plugin_remove_test.go b/client/plugin_remove_test.go index b2d515793a..adcc3c12de 100644 --- a/client/plugin_remove_test.go +++ b/client/plugin_remove_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/plugin_set.go b/client/plugin_set.go index 3260d2a90d..de72cc0d3a 100644 --- a/client/plugin_set.go +++ b/client/plugin_set.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "golang.org/x/net/context" diff --git a/client/plugin_set_test.go b/client/plugin_set_test.go index 2450254463..de2cc43140 100644 --- a/client/plugin_set_test.go +++ b/client/plugin_set_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/plugin_upgrade.go b/client/plugin_upgrade.go index 049ebfa2a5..33b740ca76 100644 --- a/client/plugin_upgrade.go +++ b/client/plugin_upgrade.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "io" diff --git a/client/request.go b/client/request.go index 615d0b989d..986b512dda 100644 --- a/client/request.go +++ b/client/request.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/request_test.go b/client/request_test.go index 63908aec4b..f3c136a04f 100644 --- a/client/request_test.go +++ b/client/request_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/secret_create.go b/client/secret_create.go index 4354afea60..fa639caf5b 100644 --- a/client/secret_create.go +++ b/client/secret_create.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/secret_create_test.go b/client/secret_create_test.go index ccc7349008..7d54e1aeb0 100644 --- a/client/secret_create_test.go +++ b/client/secret_create_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/secret_inspect.go b/client/secret_inspect.go index 6927ea96fa..6ff7549e5c 100644 --- a/client/secret_inspect.go +++ b/client/secret_inspect.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/secret_inspect_test.go b/client/secret_inspect_test.go index 66dbb48d83..5fba8bab1f 100644 --- a/client/secret_inspect_test.go +++ b/client/secret_inspect_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/secret_list.go b/client/secret_list.go index fdee6e2e0b..adf4d92be2 100644 --- a/client/secret_list.go +++ b/client/secret_list.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/secret_list_test.go b/client/secret_list_test.go index 67a94d3df5..2bd427898b 100644 --- a/client/secret_list_test.go +++ b/client/secret_list_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/secret_remove.go b/client/secret_remove.go index 9b4ee71e2c..89326e0908 100644 --- a/client/secret_remove.go +++ b/client/secret_remove.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import "golang.org/x/net/context" diff --git a/client/secret_remove_test.go b/client/secret_remove_test.go index bb41edfe5d..44cc0cbcc4 100644 --- a/client/secret_remove_test.go +++ b/client/secret_remove_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/secret_update.go b/client/secret_update.go index 875a4c901e..8efd35c1eb 100644 --- a/client/secret_update.go +++ b/client/secret_update.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/secret_update_test.go b/client/secret_update_test.go index 4a791328ed..d2fca4b2d5 100644 --- a/client/secret_update_test.go +++ b/client/secret_update_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/service_create.go b/client/service_create.go index 834709d1f3..cf85ca4a18 100644 --- a/client/service_create.go +++ b/client/service_create.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/service_create_test.go b/client/service_create_test.go index 6915d636e0..9e859b18ac 100644 --- a/client/service_create_test.go +++ b/client/service_create_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/service_inspect.go b/client/service_inspect.go index 3e9699e5e0..67bcc9cfaf 100644 --- a/client/service_inspect.go +++ b/client/service_inspect.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/service_inspect_test.go b/client/service_inspect_test.go index ade62535ca..b5286886f2 100644 --- a/client/service_inspect_test.go +++ b/client/service_inspect_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/service_list.go b/client/service_list.go index eb3ff9739c..fdb33cc221 100644 --- a/client/service_list.go +++ b/client/service_list.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/service_list_test.go b/client/service_list_test.go index 213981ef70..482c7ddb5e 100644 --- a/client/service_list_test.go +++ b/client/service_list_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/service_logs.go b/client/service_logs.go index 24384e3ec0..4b393bb494 100644 --- a/client/service_logs.go +++ b/client/service_logs.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "io" diff --git a/client/service_logs_test.go b/client/service_logs_test.go index a6d002ba75..e57b9bd1d6 100644 --- a/client/service_logs_test.go +++ b/client/service_logs_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/service_remove.go b/client/service_remove.go index ad992c01d0..7ef04e8204 100644 --- a/client/service_remove.go +++ b/client/service_remove.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import "golang.org/x/net/context" diff --git a/client/service_remove_test.go b/client/service_remove_test.go index d7c51ef3dc..0909c9e064 100644 --- a/client/service_remove_test.go +++ b/client/service_remove_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/service_update.go b/client/service_update.go index 8764f299a3..57cb45d8d2 100644 --- a/client/service_update.go +++ b/client/service_update.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/service_update_test.go b/client/service_update_test.go index 76bea176bf..7e20c14b28 100644 --- a/client/service_update_test.go +++ b/client/service_update_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/session.go b/client/session.go index 8ee9162136..b136538c22 100644 --- a/client/session.go +++ b/client/session.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net" diff --git a/client/swarm_get_unlock_key.go b/client/swarm_get_unlock_key.go index be28d32628..c02ae35c6d 100644 --- a/client/swarm_get_unlock_key.go +++ b/client/swarm_get_unlock_key.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/swarm_get_unlock_key_test.go b/client/swarm_get_unlock_key_test.go index fbb290aae1..c4ac70738a 100644 --- a/client/swarm_get_unlock_key_test.go +++ b/client/swarm_get_unlock_key_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/swarm_init.go b/client/swarm_init.go index 9e65e1cca4..2997836317 100644 --- a/client/swarm_init.go +++ b/client/swarm_init.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/swarm_init_test.go b/client/swarm_init_test.go index 811155aff4..ed8028fdcd 100644 --- a/client/swarm_init_test.go +++ b/client/swarm_init_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/swarm_inspect.go b/client/swarm_inspect.go index 77e72f8466..02f42aa8a9 100644 --- a/client/swarm_inspect.go +++ b/client/swarm_inspect.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/swarm_inspect_test.go b/client/swarm_inspect_test.go index 6432d172b4..20a992a242 100644 --- a/client/swarm_inspect_test.go +++ b/client/swarm_inspect_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/swarm_join.go b/client/swarm_join.go index 19e5192b9e..13f8d79d6c 100644 --- a/client/swarm_join.go +++ b/client/swarm_join.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "github.com/docker/docker/api/types/swarm" diff --git a/client/swarm_join_test.go b/client/swarm_join_test.go index 31ef2a76ee..384b2dd466 100644 --- a/client/swarm_join_test.go +++ b/client/swarm_join_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/swarm_leave.go b/client/swarm_leave.go index 3a205cf3b5..d0d00cbb4a 100644 --- a/client/swarm_leave.go +++ b/client/swarm_leave.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/swarm_leave_test.go b/client/swarm_leave_test.go index c96dac8120..5fb30c6ccc 100644 --- a/client/swarm_leave_test.go +++ b/client/swarm_leave_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/swarm_unlock.go b/client/swarm_unlock.go index 9ee441fed2..44a26bcc95 100644 --- a/client/swarm_unlock.go +++ b/client/swarm_unlock.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "github.com/docker/docker/api/types/swarm" diff --git a/client/swarm_unlock_test.go b/client/swarm_unlock_test.go index c242d41784..824221127a 100644 --- a/client/swarm_unlock_test.go +++ b/client/swarm_unlock_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/swarm_update.go b/client/swarm_update.go index 7245fd4e38..df6f1b0dc5 100644 --- a/client/swarm_update.go +++ b/client/swarm_update.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "fmt" diff --git a/client/swarm_update_test.go b/client/swarm_update_test.go index 3b23db078f..f4ea525a8b 100644 --- a/client/swarm_update_test.go +++ b/client/swarm_update_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/task_inspect.go b/client/task_inspect.go index dc08cedb96..a7b31219a6 100644 --- a/client/task_inspect.go +++ b/client/task_inspect.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/task_inspect_test.go b/client/task_inspect_test.go index 148cdad3a7..6adba9219f 100644 --- a/client/task_inspect_test.go +++ b/client/task_inspect_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/task_list.go b/client/task_list.go index 01bd695257..e56718012c 100644 --- a/client/task_list.go +++ b/client/task_list.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/task_list_test.go b/client/task_list_test.go index 2a9a4c4346..900afb66b2 100644 --- a/client/task_list_test.go +++ b/client/task_list_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/task_logs.go b/client/task_logs.go index 2ed19543a4..cf0b3f6bba 100644 --- a/client/task_logs.go +++ b/client/task_logs.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "io" diff --git a/client/tlsconfig_clone.go b/client/tlsconfig_clone.go index 99b6be1cea..88200e92c3 100644 --- a/client/tlsconfig_clone.go +++ b/client/tlsconfig_clone.go @@ -1,6 +1,6 @@ // +build go1.8 -package client +package client // import "github.com/docker/docker/client" import "crypto/tls" diff --git a/client/tlsconfig_clone_go17.go b/client/tlsconfig_clone_go17.go index b837b2ade0..e298542367 100644 --- a/client/tlsconfig_clone_go17.go +++ b/client/tlsconfig_clone_go17.go @@ -1,6 +1,6 @@ // +build go1.7,!go1.8 -package client +package client // import "github.com/docker/docker/client" import "crypto/tls" diff --git a/client/transport.go b/client/transport.go index 73f6ef7b4d..5541344366 100644 --- a/client/transport.go +++ b/client/transport.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "crypto/tls" diff --git a/client/utils.go b/client/utils.go index 137705065c..7f3ff44eb8 100644 --- a/client/utils.go +++ b/client/utils.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/version.go b/client/version.go index 933ceb4a49..4bb60fab58 100644 --- a/client/version.go +++ b/client/version.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/volume_create.go b/client/volume_create.go index 9620c87cbf..8108b7b92f 100644 --- a/client/volume_create.go +++ b/client/volume_create.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/volume_create_test.go b/client/volume_create_test.go index 9f1b2540b5..69ed24a5bc 100644 --- a/client/volume_create_test.go +++ b/client/volume_create_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/volume_inspect.go b/client/volume_inspect.go index 9889343849..b72e64d793 100644 --- a/client/volume_inspect.go +++ b/client/volume_inspect.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/volume_inspect_test.go b/client/volume_inspect_test.go index 7d01f44ed2..1ec10b210a 100644 --- a/client/volume_inspect_test.go +++ b/client/volume_inspect_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/volume_list.go b/client/volume_list.go index 32247ce115..aeca1cc1a3 100644 --- a/client/volume_list.go +++ b/client/volume_list.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/volume_list_test.go b/client/volume_list_test.go index f29639be23..b7f9464171 100644 --- a/client/volume_list_test.go +++ b/client/volume_list_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/client/volume_prune.go b/client/volume_prune.go index 2e7fea7747..090a6a66df 100644 --- a/client/volume_prune.go +++ b/client/volume_prune.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "encoding/json" diff --git a/client/volume_remove.go b/client/volume_remove.go index 3ffb8bcf2e..02ee573a73 100644 --- a/client/volume_remove.go +++ b/client/volume_remove.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "net/url" diff --git a/client/volume_remove_test.go b/client/volume_remove_test.go index 1fe657349a..5364f70b04 100644 --- a/client/volume_remove_test.go +++ b/client/volume_remove_test.go @@ -1,4 +1,4 @@ -package client +package client // import "github.com/docker/docker/client" import ( "bytes" diff --git a/cmd/dockerd/hack/malformed_host_override.go b/cmd/dockerd/hack/malformed_host_override.go index e7175caa0b..ddd5eb9d8b 100644 --- a/cmd/dockerd/hack/malformed_host_override.go +++ b/cmd/dockerd/hack/malformed_host_override.go @@ -1,6 +1,6 @@ // +build !windows -package hack +package hack // import "github.com/docker/docker/cmd/dockerd/hack" import "net" diff --git a/cmd/dockerd/hack/malformed_host_override_test.go b/cmd/dockerd/hack/malformed_host_override_test.go index 1a0a60baf3..6874b059be 100644 --- a/cmd/dockerd/hack/malformed_host_override_test.go +++ b/cmd/dockerd/hack/malformed_host_override_test.go @@ -1,6 +1,6 @@ // +build !windows -package hack +package hack // import "github.com/docker/docker/cmd/dockerd/hack" import ( "bytes" diff --git a/container/archive.go b/container/archive.go index ec4c236fe6..960d7bf615 100644 --- a/container/archive.go +++ b/container/archive.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" import ( "os" diff --git a/container/container.go b/container/container.go index f19f9893f4..938d66f889 100644 --- a/container/container.go +++ b/container/container.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" import ( "bytes" diff --git a/container/container_linux.go b/container/container_linux.go index 4d4c16b563..ea2ebabaaa 100644 --- a/container/container_linux.go +++ b/container/container_linux.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" import ( "golang.org/x/sys/unix" diff --git a/container/container_notlinux.go b/container/container_notlinux.go index 246a146f0f..dc9751b8c7 100644 --- a/container/container_notlinux.go +++ b/container/container_notlinux.go @@ -1,6 +1,6 @@ // +build freebsd -package container +package container // import "github.com/docker/docker/container" import ( "golang.org/x/sys/unix" diff --git a/container/container_unit_test.go b/container/container_unit_test.go index 9ba2991beb..f6ded8fa9d 100644 --- a/container/container_unit_test.go +++ b/container/container_unit_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" import ( "path/filepath" diff --git a/container/container_unix.go b/container/container_unix.go index 63ad2389c4..32805e5271 100644 --- a/container/container_unix.go +++ b/container/container_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd -package container +package container // import "github.com/docker/docker/container" import ( "io/ioutil" diff --git a/container/container_windows.go b/container/container_windows.go index 94a4e1c0b0..44b646a1ad 100644 --- a/container/container_windows.go +++ b/container/container_windows.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" import ( "fmt" diff --git a/container/env.go b/container/env.go index 896a384c4d..d225fd1471 100644 --- a/container/env.go +++ b/container/env.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" import ( "strings" diff --git a/container/env_test.go b/container/env_test.go index 4ebf2640a8..77856284c2 100644 --- a/container/env_test.go +++ b/container/env_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" import "testing" diff --git a/container/health.go b/container/health.go index 6f75012fe1..167ee9b476 100644 --- a/container/health.go +++ b/container/health.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" import ( "sync" diff --git a/container/history.go b/container/history.go index c80c2aa0cc..7117d9a437 100644 --- a/container/history.go +++ b/container/history.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" import "sort" diff --git a/container/memory_store.go b/container/memory_store.go index 706407a71c..ad4c9e20f6 100644 --- a/container/memory_store.go +++ b/container/memory_store.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" import ( "sync" diff --git a/container/memory_store_test.go b/container/memory_store_test.go index 8d26d1a962..09a8f27e07 100644 --- a/container/memory_store_test.go +++ b/container/memory_store_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" import ( "testing" diff --git a/container/monitor.go b/container/monitor.go index f35097b2cd..1735e3487e 100644 --- a/container/monitor.go +++ b/container/monitor.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" import ( "time" diff --git a/container/mounts_unix.go b/container/mounts_unix.go index c52abed2dc..62f4441dce 100644 --- a/container/mounts_unix.go +++ b/container/mounts_unix.go @@ -1,6 +1,6 @@ // +build !windows -package container +package container // import "github.com/docker/docker/container" // Mount contains information for a mount operation. type Mount struct { diff --git a/container/mounts_windows.go b/container/mounts_windows.go index 01b327f788..8f27e88067 100644 --- a/container/mounts_windows.go +++ b/container/mounts_windows.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" // Mount contains information for a mount operation. type Mount struct { diff --git a/container/state.go b/container/state.go index 81c3b45948..d54696cd16 100644 --- a/container/state.go +++ b/container/state.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" import ( "errors" diff --git a/container/state_test.go b/container/state_test.go index 14f24600e0..4ad3c805ed 100644 --- a/container/state_test.go +++ b/container/state_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" import ( "context" diff --git a/container/store.go b/container/store.go index 042fb1a349..3af0389856 100644 --- a/container/store.go +++ b/container/store.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" // StoreFilter defines a function to filter // container in the store. diff --git a/container/stream/attach.go b/container/stream/attach.go index 4b4a4541e6..1c0f438001 100644 --- a/container/stream/attach.go +++ b/container/stream/attach.go @@ -1,4 +1,4 @@ -package stream +package stream // import "github.com/docker/docker/container/stream" import ( "io" diff --git a/container/stream/streams.go b/container/stream/streams.go index 0ec164a486..d81867c1da 100644 --- a/container/stream/streams.go +++ b/container/stream/streams.go @@ -1,4 +1,4 @@ -package stream +package stream // import "github.com/docker/docker/container/stream" import ( "fmt" diff --git a/container/view.go b/container/view.go index 2d178e1888..baf6fe7195 100644 --- a/container/view.go +++ b/container/view.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" import ( "errors" diff --git a/container/view_test.go b/container/view_test.go index c425aaf731..26803b04e6 100644 --- a/container/view_test.go +++ b/container/view_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/container" import ( "io/ioutil" diff --git a/daemon/apparmor_default.go b/daemon/apparmor_default.go index 2a418b25c2..461f5c7f96 100644 --- a/daemon/apparmor_default.go +++ b/daemon/apparmor_default.go @@ -1,6 +1,6 @@ // +build linux -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/apparmor_default_unsupported.go b/daemon/apparmor_default_unsupported.go index cd2dd9702e..51f9c526b3 100644 --- a/daemon/apparmor_default_unsupported.go +++ b/daemon/apparmor_default_unsupported.go @@ -1,6 +1,6 @@ // +build !linux -package daemon +package daemon // import "github.com/docker/docker/daemon" func ensureDefaultAppArmorProfile() error { return nil diff --git a/daemon/archive.go b/daemon/archive.go index 69301342ef..9c7971b56e 100644 --- a/daemon/archive.go +++ b/daemon/archive.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "io" diff --git a/daemon/archive_tarcopyoptions.go b/daemon/archive_tarcopyoptions.go index fe7722fdb4..766ba9fdb1 100644 --- a/daemon/archive_tarcopyoptions.go +++ b/daemon/archive_tarcopyoptions.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/docker/pkg/archive" diff --git a/daemon/archive_tarcopyoptions_unix.go b/daemon/archive_tarcopyoptions_unix.go index 83e6fd9e17..d70904564b 100644 --- a/daemon/archive_tarcopyoptions_unix.go +++ b/daemon/archive_tarcopyoptions_unix.go @@ -1,6 +1,6 @@ // +build !windows -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/docker/container" diff --git a/daemon/archive_tarcopyoptions_windows.go b/daemon/archive_tarcopyoptions_windows.go index 500e1285df..5142496f03 100644 --- a/daemon/archive_tarcopyoptions_windows.go +++ b/daemon/archive_tarcopyoptions_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/docker/container" diff --git a/daemon/archive_unix.go b/daemon/archive_unix.go index ae12cae704..ca33e7ac9a 100644 --- a/daemon/archive_unix.go +++ b/daemon/archive_unix.go @@ -1,6 +1,6 @@ // +build !windows -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/docker/container" diff --git a/daemon/archive_windows.go b/daemon/archive_windows.go index ab105607d5..8cec39c5e4 100644 --- a/daemon/archive_windows.go +++ b/daemon/archive_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "errors" diff --git a/daemon/attach.go b/daemon/attach.go index d63eaa6632..21ed9a06b7 100644 --- a/daemon/attach.go +++ b/daemon/attach.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/auth.go b/daemon/auth.go index f5f4d7bf24..0795ddfb06 100644 --- a/daemon/auth.go +++ b/daemon/auth.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "golang.org/x/net/context" diff --git a/daemon/bindmount_unix.go b/daemon/bindmount_unix.go index 3966babb41..028e300b06 100644 --- a/daemon/bindmount_unix.go +++ b/daemon/bindmount_unix.go @@ -1,5 +1,5 @@ // +build linux freebsd -package daemon +package daemon // import "github.com/docker/docker/daemon" const bindMountType = "bind" diff --git a/daemon/build.go b/daemon/build.go index b69ff897b3..0384c13f32 100644 --- a/daemon/build.go +++ b/daemon/build.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "io" diff --git a/daemon/cache.go b/daemon/cache.go index ab3a249869..2a42011eff 100644 --- a/daemon/cache.go +++ b/daemon/cache.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/docker/builder" diff --git a/daemon/caps/utils_unix.go b/daemon/caps/utils_unix.go index 28a8df6531..4c18b28be5 100644 --- a/daemon/caps/utils_unix.go +++ b/daemon/caps/utils_unix.go @@ -1,6 +1,6 @@ // +build !windows -package caps +package caps // import "github.com/docker/docker/daemon/caps" import ( "fmt" diff --git a/daemon/changes.go b/daemon/changes.go index fc8cd2752c..306790e888 100644 --- a/daemon/changes.go +++ b/daemon/changes.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "errors" diff --git a/daemon/checkpoint.go b/daemon/checkpoint.go index 78930de4de..4a1cb0e10e 100644 --- a/daemon/checkpoint.go +++ b/daemon/checkpoint.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/cluster.go b/daemon/cluster.go index d22970bcd7..b5ac6c4856 100644 --- a/daemon/cluster.go +++ b/daemon/cluster.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( apitypes "github.com/docker/docker/api/types" diff --git a/daemon/cluster/cluster.go b/daemon/cluster/cluster.go index 6a7db153b7..7fdf633bd8 100644 --- a/daemon/cluster/cluster.go +++ b/daemon/cluster/cluster.go @@ -1,4 +1,4 @@ -package cluster +package cluster // import "github.com/docker/docker/daemon/cluster" // // ## Swarmkit integration diff --git a/daemon/cluster/configs.go b/daemon/cluster/configs.go index 3d418c1405..16851855c4 100644 --- a/daemon/cluster/configs.go +++ b/daemon/cluster/configs.go @@ -1,4 +1,4 @@ -package cluster +package cluster // import "github.com/docker/docker/daemon/cluster" import ( apitypes "github.com/docker/docker/api/types" diff --git a/daemon/cluster/controllers/plugin/controller.go b/daemon/cluster/controllers/plugin/controller.go index d4f24e82df..dbeeb6daa3 100644 --- a/daemon/cluster/controllers/plugin/controller.go +++ b/daemon/cluster/controllers/plugin/controller.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/daemon/cluster/controllers/plugin" import ( "io" diff --git a/daemon/cluster/controllers/plugin/controller_test.go b/daemon/cluster/controllers/plugin/controller_test.go index 70bb91b12e..44ee5c924e 100644 --- a/daemon/cluster/controllers/plugin/controller_test.go +++ b/daemon/cluster/controllers/plugin/controller_test.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/daemon/cluster/controllers/plugin" import ( "errors" diff --git a/daemon/cluster/convert/config.go b/daemon/cluster/convert/config.go index 6b28712ff9..ba7920ec94 100644 --- a/daemon/cluster/convert/config.go +++ b/daemon/cluster/convert/config.go @@ -1,4 +1,4 @@ -package convert +package convert // import "github.com/docker/docker/daemon/cluster/convert" import ( swarmtypes "github.com/docker/docker/api/types/swarm" diff --git a/daemon/cluster/convert/container.go b/daemon/cluster/convert/container.go index 3f3ea349a9..baf02a996c 100644 --- a/daemon/cluster/convert/container.go +++ b/daemon/cluster/convert/container.go @@ -1,4 +1,4 @@ -package convert +package convert // import "github.com/docker/docker/daemon/cluster/convert" import ( "errors" diff --git a/daemon/cluster/convert/network.go b/daemon/cluster/convert/network.go index ab9c694c38..44f5f56466 100644 --- a/daemon/cluster/convert/network.go +++ b/daemon/cluster/convert/network.go @@ -1,4 +1,4 @@ -package convert +package convert // import "github.com/docker/docker/daemon/cluster/convert" import ( "strings" diff --git a/daemon/cluster/convert/network_test.go b/daemon/cluster/convert/network_test.go index 1603b38d41..42f70696b7 100644 --- a/daemon/cluster/convert/network_test.go +++ b/daemon/cluster/convert/network_test.go @@ -1,4 +1,4 @@ -package convert +package convert // import "github.com/docker/docker/daemon/cluster/convert" import ( "testing" diff --git a/daemon/cluster/convert/node.go b/daemon/cluster/convert/node.go index 528ec54a60..00636b6ab4 100644 --- a/daemon/cluster/convert/node.go +++ b/daemon/cluster/convert/node.go @@ -1,4 +1,4 @@ -package convert +package convert // import "github.com/docker/docker/daemon/cluster/convert" import ( "fmt" diff --git a/daemon/cluster/convert/secret.go b/daemon/cluster/convert/secret.go index edbf8e5932..3ec2a353dd 100644 --- a/daemon/cluster/convert/secret.go +++ b/daemon/cluster/convert/secret.go @@ -1,4 +1,4 @@ -package convert +package convert // import "github.com/docker/docker/daemon/cluster/convert" import ( swarmtypes "github.com/docker/docker/api/types/swarm" diff --git a/daemon/cluster/convert/service.go b/daemon/cluster/convert/service.go index f0dee57bd4..7aa34fa77f 100644 --- a/daemon/cluster/convert/service.go +++ b/daemon/cluster/convert/service.go @@ -1,4 +1,4 @@ -package convert +package convert // import "github.com/docker/docker/daemon/cluster/convert" import ( "fmt" diff --git a/daemon/cluster/convert/service_test.go b/daemon/cluster/convert/service_test.go index a5c7cc4ddf..347aa028be 100644 --- a/daemon/cluster/convert/service_test.go +++ b/daemon/cluster/convert/service_test.go @@ -1,4 +1,4 @@ -package convert +package convert // import "github.com/docker/docker/daemon/cluster/convert" import ( "testing" diff --git a/daemon/cluster/convert/swarm.go b/daemon/cluster/convert/swarm.go index 3ef3205e9e..ae97a4b61d 100644 --- a/daemon/cluster/convert/swarm.go +++ b/daemon/cluster/convert/swarm.go @@ -1,4 +1,4 @@ -package convert +package convert // import "github.com/docker/docker/daemon/cluster/convert" import ( "fmt" diff --git a/daemon/cluster/convert/task.go b/daemon/cluster/convert/task.go index be3bacf11c..dbe6d7414d 100644 --- a/daemon/cluster/convert/task.go +++ b/daemon/cluster/convert/task.go @@ -1,4 +1,4 @@ -package convert +package convert // import "github.com/docker/docker/daemon/cluster/convert" import ( "strings" diff --git a/daemon/cluster/errors.go b/daemon/cluster/errors.go index 9b2e81e0a8..9ec716b1ba 100644 --- a/daemon/cluster/errors.go +++ b/daemon/cluster/errors.go @@ -1,4 +1,4 @@ -package cluster +package cluster // import "github.com/docker/docker/daemon/cluster" const ( // errNoSwarm is returned on leaving a cluster that was never initialized diff --git a/daemon/cluster/executor/backend.go b/daemon/cluster/executor/backend.go index 9a0f1cb954..a0b56a97bc 100644 --- a/daemon/cluster/executor/backend.go +++ b/daemon/cluster/executor/backend.go @@ -1,4 +1,4 @@ -package executor +package executor // import "github.com/docker/docker/daemon/cluster/executor" import ( "io" diff --git a/daemon/cluster/executor/container/adapter.go b/daemon/cluster/executor/container/adapter.go index 9ba64c486a..0520fa0bc1 100644 --- a/daemon/cluster/executor/container/adapter.go +++ b/daemon/cluster/executor/container/adapter.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/daemon/cluster/executor/container" import ( "encoding/base64" diff --git a/daemon/cluster/executor/container/attachment.go b/daemon/cluster/executor/container/attachment.go index 405aa2db6e..0c630745ba 100644 --- a/daemon/cluster/executor/container/attachment.go +++ b/daemon/cluster/executor/container/attachment.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/daemon/cluster/executor/container" import ( executorpkg "github.com/docker/docker/daemon/cluster/executor" diff --git a/daemon/cluster/executor/container/container.go b/daemon/cluster/executor/container/container.go index 2ebc6a2d73..5d052dfe09 100644 --- a/daemon/cluster/executor/container/container.go +++ b/daemon/cluster/executor/container/container.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/daemon/cluster/executor/container" import ( "errors" diff --git a/daemon/cluster/executor/container/container_test.go b/daemon/cluster/executor/container/container_test.go index a583d14c20..456cd403b1 100644 --- a/daemon/cluster/executor/container/container_test.go +++ b/daemon/cluster/executor/container/container_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/daemon/cluster/executor/container" import ( "testing" diff --git a/daemon/cluster/executor/container/controller.go b/daemon/cluster/executor/container/controller.go index df14a7a76d..09fecf1ba9 100644 --- a/daemon/cluster/executor/container/controller.go +++ b/daemon/cluster/executor/container/controller.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/daemon/cluster/executor/container" import ( "fmt" diff --git a/daemon/cluster/executor/container/errors.go b/daemon/cluster/executor/container/errors.go index 535d9b5706..4c90b9e0a2 100644 --- a/daemon/cluster/executor/container/errors.go +++ b/daemon/cluster/executor/container/errors.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/daemon/cluster/executor/container" import ( "errors" diff --git a/daemon/cluster/executor/container/executor.go b/daemon/cluster/executor/container/executor.go index b032163f95..48ec7e0d25 100644 --- a/daemon/cluster/executor/container/executor.go +++ b/daemon/cluster/executor/container/executor.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/daemon/cluster/executor/container" import ( "fmt" diff --git a/daemon/cluster/executor/container/health_test.go b/daemon/cluster/executor/container/health_test.go index 450865edd3..59633dd127 100644 --- a/daemon/cluster/executor/container/health_test.go +++ b/daemon/cluster/executor/container/health_test.go @@ -1,6 +1,6 @@ // +build !windows -package container +package container // import "github.com/docker/docker/daemon/cluster/executor/container" import ( "testing" diff --git a/daemon/cluster/executor/container/validate.go b/daemon/cluster/executor/container/validate.go index af17f5b810..cbe1f53c38 100644 --- a/daemon/cluster/executor/container/validate.go +++ b/daemon/cluster/executor/container/validate.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/daemon/cluster/executor/container" import ( "errors" diff --git a/daemon/cluster/executor/container/validate_test.go b/daemon/cluster/executor/container/validate_test.go index 43e224a8fa..d843431f4f 100644 --- a/daemon/cluster/executor/container/validate_test.go +++ b/daemon/cluster/executor/container/validate_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/daemon/cluster/executor/container" import ( "io/ioutil" diff --git a/daemon/cluster/executor/container/validate_unix_test.go b/daemon/cluster/executor/container/validate_unix_test.go index c616eeef93..7a3f053621 100644 --- a/daemon/cluster/executor/container/validate_unix_test.go +++ b/daemon/cluster/executor/container/validate_unix_test.go @@ -1,6 +1,6 @@ // +build !windows -package container +package container // import "github.com/docker/docker/daemon/cluster/executor/container" const ( testAbsPath = "/foo" diff --git a/daemon/cluster/executor/container/validate_windows_test.go b/daemon/cluster/executor/container/validate_windows_test.go index c346451d3d..6ee4c96431 100644 --- a/daemon/cluster/executor/container/validate_windows_test.go +++ b/daemon/cluster/executor/container/validate_windows_test.go @@ -1,6 +1,6 @@ // +build windows -package container +package container // import "github.com/docker/docker/daemon/cluster/executor/container" const ( testAbsPath = `c:\foo` diff --git a/daemon/cluster/filters.go b/daemon/cluster/filters.go index efda7dc8d7..15469f907d 100644 --- a/daemon/cluster/filters.go +++ b/daemon/cluster/filters.go @@ -1,4 +1,4 @@ -package cluster +package cluster // import "github.com/docker/docker/daemon/cluster" import ( "fmt" diff --git a/daemon/cluster/filters_test.go b/daemon/cluster/filters_test.go index fd0c8c3692..a38feeaaf7 100644 --- a/daemon/cluster/filters_test.go +++ b/daemon/cluster/filters_test.go @@ -1,4 +1,4 @@ -package cluster +package cluster // import "github.com/docker/docker/daemon/cluster" import ( "testing" diff --git a/daemon/cluster/helpers.go b/daemon/cluster/helpers.go index 9541bff390..927aaad0ac 100644 --- a/daemon/cluster/helpers.go +++ b/daemon/cluster/helpers.go @@ -1,4 +1,4 @@ -package cluster +package cluster // import "github.com/docker/docker/daemon/cluster" import ( "fmt" diff --git a/daemon/cluster/listen_addr.go b/daemon/cluster/listen_addr.go index 0d6590765b..e1ebfec8df 100644 --- a/daemon/cluster/listen_addr.go +++ b/daemon/cluster/listen_addr.go @@ -1,4 +1,4 @@ -package cluster +package cluster // import "github.com/docker/docker/daemon/cluster" import ( "fmt" diff --git a/daemon/cluster/listen_addr_linux.go b/daemon/cluster/listen_addr_linux.go index 2f342fd605..62e4f61a65 100644 --- a/daemon/cluster/listen_addr_linux.go +++ b/daemon/cluster/listen_addr_linux.go @@ -1,4 +1,4 @@ -package cluster +package cluster // import "github.com/docker/docker/daemon/cluster" import ( "net" diff --git a/daemon/cluster/listen_addr_others.go b/daemon/cluster/listen_addr_others.go index ebf7daea24..fe75848e57 100644 --- a/daemon/cluster/listen_addr_others.go +++ b/daemon/cluster/listen_addr_others.go @@ -1,6 +1,6 @@ // +build !linux -package cluster +package cluster // import "github.com/docker/docker/daemon/cluster" import "net" diff --git a/daemon/cluster/networks.go b/daemon/cluster/networks.go index 4e92e0eed8..62c9138b3f 100644 --- a/daemon/cluster/networks.go +++ b/daemon/cluster/networks.go @@ -1,4 +1,4 @@ -package cluster +package cluster // import "github.com/docker/docker/daemon/cluster" import ( "fmt" diff --git a/daemon/cluster/noderunner.go b/daemon/cluster/noderunner.go index 6aae6c3271..f832aca145 100644 --- a/daemon/cluster/noderunner.go +++ b/daemon/cluster/noderunner.go @@ -1,4 +1,4 @@ -package cluster +package cluster // import "github.com/docker/docker/daemon/cluster" import ( "fmt" diff --git a/daemon/cluster/nodes.go b/daemon/cluster/nodes.go index 879d272e75..12893d9078 100644 --- a/daemon/cluster/nodes.go +++ b/daemon/cluster/nodes.go @@ -1,4 +1,4 @@ -package cluster +package cluster // import "github.com/docker/docker/daemon/cluster" import ( apitypes "github.com/docker/docker/api/types" diff --git a/daemon/cluster/provider/network.go b/daemon/cluster/provider/network.go index f4c72ae13b..533baa0e17 100644 --- a/daemon/cluster/provider/network.go +++ b/daemon/cluster/provider/network.go @@ -1,4 +1,4 @@ -package provider +package provider // import "github.com/docker/docker/daemon/cluster/provider" import "github.com/docker/docker/api/types" diff --git a/daemon/cluster/secrets.go b/daemon/cluster/secrets.go index 3947286cba..45f246f483 100644 --- a/daemon/cluster/secrets.go +++ b/daemon/cluster/secrets.go @@ -1,4 +1,4 @@ -package cluster +package cluster // import "github.com/docker/docker/daemon/cluster" import ( apitypes "github.com/docker/docker/api/types" diff --git a/daemon/cluster/services.go b/daemon/cluster/services.go index 931d17c75f..5cc9566fa0 100644 --- a/daemon/cluster/services.go +++ b/daemon/cluster/services.go @@ -1,4 +1,4 @@ -package cluster +package cluster // import "github.com/docker/docker/daemon/cluster" import ( "encoding/base64" diff --git a/daemon/cluster/swarm.go b/daemon/cluster/swarm.go index 3c7a23b71d..5deb8a024d 100644 --- a/daemon/cluster/swarm.go +++ b/daemon/cluster/swarm.go @@ -1,4 +1,4 @@ -package cluster +package cluster // import "github.com/docker/docker/daemon/cluster" import ( "fmt" diff --git a/daemon/cluster/tasks.go b/daemon/cluster/tasks.go index f52301fe47..8789613279 100644 --- a/daemon/cluster/tasks.go +++ b/daemon/cluster/tasks.go @@ -1,4 +1,4 @@ -package cluster +package cluster // import "github.com/docker/docker/daemon/cluster" import ( apitypes "github.com/docker/docker/api/types" diff --git a/daemon/cluster/utils.go b/daemon/cluster/utils.go index 93827961e1..d55e0012b7 100644 --- a/daemon/cluster/utils.go +++ b/daemon/cluster/utils.go @@ -1,4 +1,4 @@ -package cluster +package cluster // import "github.com/docker/docker/daemon/cluster" import ( "encoding/json" diff --git a/daemon/commit.go b/daemon/commit.go index de621168a9..7b78cecc12 100644 --- a/daemon/commit.go +++ b/daemon/commit.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "encoding/json" diff --git a/daemon/config/config.go b/daemon/config/config.go index 1466c0b71b..71457ed0f0 100644 --- a/daemon/config/config.go +++ b/daemon/config/config.go @@ -1,4 +1,4 @@ -package config +package config // import "github.com/docker/docker/daemon/config" import ( "bytes" diff --git a/daemon/config/config_common_unix.go b/daemon/config/config_common_unix.go index d2fa2e035a..4bdf758869 100644 --- a/daemon/config/config_common_unix.go +++ b/daemon/config/config_common_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd -package config +package config // import "github.com/docker/docker/daemon/config" import ( "net" diff --git a/daemon/config/config_common_unix_test.go b/daemon/config/config_common_unix_test.go index 8647a22063..47774a8ec1 100644 --- a/daemon/config/config_common_unix_test.go +++ b/daemon/config/config_common_unix_test.go @@ -1,6 +1,6 @@ // +build !windows -package config +package config // import "github.com/docker/docker/daemon/config" import ( "testing" diff --git a/daemon/config/config_test.go b/daemon/config/config_test.go index cb7fb00a72..53db2922cb 100644 --- a/daemon/config/config_test.go +++ b/daemon/config/config_test.go @@ -1,4 +1,4 @@ -package config +package config // import "github.com/docker/docker/daemon/config" import ( "io/ioutil" diff --git a/daemon/config/config_unix.go b/daemon/config/config_unix.go index 3a9e1cf53c..b71fc9d75b 100644 --- a/daemon/config/config_unix.go +++ b/daemon/config/config_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd -package config +package config // import "github.com/docker/docker/daemon/config" import ( "fmt" diff --git a/daemon/config/config_unix_test.go b/daemon/config/config_unix_test.go index fedf757eb4..b4efa95e0e 100644 --- a/daemon/config/config_unix_test.go +++ b/daemon/config/config_unix_test.go @@ -1,6 +1,6 @@ // +build !windows -package config +package config // import "github.com/docker/docker/daemon/config" import ( "testing" diff --git a/daemon/config/config_windows.go b/daemon/config/config_windows.go index 6f994e391d..0aa7d54bf2 100644 --- a/daemon/config/config_windows.go +++ b/daemon/config/config_windows.go @@ -1,4 +1,4 @@ -package config +package config // import "github.com/docker/docker/daemon/config" import ( "github.com/docker/docker/api/types" diff --git a/daemon/config/config_windows_test.go b/daemon/config/config_windows_test.go index 92ee8e4acd..5382bb3b77 100644 --- a/daemon/config/config_windows_test.go +++ b/daemon/config/config_windows_test.go @@ -1,6 +1,6 @@ // +build windows -package config +package config // import "github.com/docker/docker/daemon/config" import ( "io/ioutil" diff --git a/daemon/config/opts.go b/daemon/config/opts.go index cdf264911f..8b114929fb 100644 --- a/daemon/config/opts.go +++ b/daemon/config/opts.go @@ -1,4 +1,4 @@ -package config +package config // import "github.com/docker/docker/daemon/config" import ( "github.com/docker/docker/api/types/swarm" diff --git a/daemon/configs.go b/daemon/configs.go index 9d9137c42f..f85c51db2e 100644 --- a/daemon/configs.go +++ b/daemon/configs.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( swarmtypes "github.com/docker/docker/api/types/swarm" diff --git a/daemon/configs_linux.go b/daemon/configs_linux.go index d498c951e3..ceb666337c 100644 --- a/daemon/configs_linux.go +++ b/daemon/configs_linux.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" func configsSupported() bool { return true diff --git a/daemon/configs_unsupported.go b/daemon/configs_unsupported.go index 1a7cbc9dc7..ae6f14f54e 100644 --- a/daemon/configs_unsupported.go +++ b/daemon/configs_unsupported.go @@ -1,6 +1,6 @@ // +build !linux,!windows -package daemon +package daemon // import "github.com/docker/docker/daemon" func configsSupported() bool { return false diff --git a/daemon/configs_windows.go b/daemon/configs_windows.go index d498c951e3..ceb666337c 100644 --- a/daemon/configs_windows.go +++ b/daemon/configs_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" func configsSupported() bool { return true diff --git a/daemon/container.go b/daemon/container.go index d55c98f5a7..1c01a74ed6 100644 --- a/daemon/container.go +++ b/daemon/container.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/container_linux.go b/daemon/container_linux.go index d63f4b72a5..e6f5bf2ccc 100644 --- a/daemon/container_linux.go +++ b/daemon/container_linux.go @@ -1,6 +1,6 @@ //+build !windows -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/docker/container" diff --git a/daemon/container_operations.go b/daemon/container_operations.go index bed184a50c..9b67b4546d 100644 --- a/daemon/container_operations.go +++ b/daemon/container_operations.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "errors" diff --git a/daemon/container_operations_unix.go b/daemon/container_operations_unix.go index 0aaa6c2253..abd47c807f 100644 --- a/daemon/container_operations_unix.go +++ b/daemon/container_operations_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/container_operations_windows.go b/daemon/container_operations_windows.go index c762fc99cb..0e70de1e8b 100644 --- a/daemon/container_operations_windows.go +++ b/daemon/container_operations_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/container_windows.go b/daemon/container_windows.go index 6db130ab05..0ca8039dd6 100644 --- a/daemon/container_windows.go +++ b/daemon/container_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/docker/container" diff --git a/daemon/create.go b/daemon/create.go index 0f52f3c3fb..05231dfcec 100644 --- a/daemon/create.go +++ b/daemon/create.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/create_test.go b/daemon/create_test.go index 43ac5b390a..3e355f6473 100644 --- a/daemon/create_test.go +++ b/daemon/create_test.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "testing" diff --git a/daemon/create_unix.go b/daemon/create_unix.go index e08e4eaedc..30ef433c5a 100644 --- a/daemon/create_unix.go +++ b/daemon/create_unix.go @@ -1,6 +1,6 @@ // +build !windows -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/create_windows.go b/daemon/create_windows.go index c7f075f374..a4cf7df939 100644 --- a/daemon/create_windows.go +++ b/daemon/create_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/daemon.go b/daemon/daemon.go index 30f6e47f4d..982cdf543d 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -3,7 +3,7 @@ // // In implementing the various functions of the daemon, there is often // a method-specific struct for configuring the runtime behavior. -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/daemon_linux.go b/daemon/daemon_linux.go index 56ed4ce95a..911ef7f498 100644 --- a/daemon/daemon_linux.go +++ b/daemon/daemon_linux.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "bufio" diff --git a/daemon/daemon_linux_test.go b/daemon/daemon_linux_test.go index e027b14dd0..ac9404cba9 100644 --- a/daemon/daemon_linux_test.go +++ b/daemon/daemon_linux_test.go @@ -1,6 +1,6 @@ // +build linux -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "strings" diff --git a/daemon/daemon_test.go b/daemon/daemon_test.go index 0f6bed1c47..5d40e11143 100644 --- a/daemon/daemon_test.go +++ b/daemon/daemon_test.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "io/ioutil" diff --git a/daemon/daemon_unix.go b/daemon/daemon_unix.go index de9537c1b0..861ea8636a 100644 --- a/daemon/daemon_unix.go +++ b/daemon/daemon_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "bufio" diff --git a/daemon/daemon_unix_test.go b/daemon/daemon_unix_test.go index a4db4733d4..cd88b38335 100644 --- a/daemon/daemon_unix_test.go +++ b/daemon/daemon_unix_test.go @@ -1,6 +1,6 @@ // +build !windows -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "errors" diff --git a/daemon/daemon_unsupported.go b/daemon/daemon_unsupported.go index 987528f476..ee680b6411 100644 --- a/daemon/daemon_unsupported.go +++ b/daemon/daemon_unsupported.go @@ -1,5 +1,5 @@ // +build !linux,!freebsd,!windows -package daemon +package daemon // import "github.com/docker/docker/daemon" const platformSupported = false diff --git a/daemon/daemon_windows.go b/daemon/daemon_windows.go index e3b2072479..7b5d954e98 100644 --- a/daemon/daemon_windows.go +++ b/daemon/daemon_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/daemon_windows_test.go b/daemon/daemon_windows_test.go index 8b350cf20f..a4d8b6a20a 100644 --- a/daemon/daemon_windows_test.go +++ b/daemon/daemon_windows_test.go @@ -1,6 +1,6 @@ // +build windows -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "strings" diff --git a/daemon/debugtrap_unix.go b/daemon/debugtrap_unix.go index 8ea696d961..c8abe69bb6 100644 --- a/daemon/debugtrap_unix.go +++ b/daemon/debugtrap_unix.go @@ -1,6 +1,6 @@ // +build !windows -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "os" diff --git a/daemon/debugtrap_unsupported.go b/daemon/debugtrap_unsupported.go index 6ae9ebfde9..e83d51f597 100644 --- a/daemon/debugtrap_unsupported.go +++ b/daemon/debugtrap_unsupported.go @@ -1,6 +1,6 @@ // +build !linux,!darwin,!freebsd,!windows -package daemon +package daemon // import "github.com/docker/docker/daemon" func (d *Daemon) setupDumpStackTrap(_ string) { return diff --git a/daemon/debugtrap_windows.go b/daemon/debugtrap_windows.go index 916bbb4ebc..b438d03812 100644 --- a/daemon/debugtrap_windows.go +++ b/daemon/debugtrap_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/delete.go b/daemon/delete.go index c6f8efec45..b0ea416f9f 100644 --- a/daemon/delete.go +++ b/daemon/delete.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/delete_test.go b/daemon/delete_test.go index 887fa53148..48a8afec48 100644 --- a/daemon/delete_test.go +++ b/daemon/delete_test.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/dependency.go b/daemon/dependency.go index 83144e6865..45275dbf4c 100644 --- a/daemon/dependency.go +++ b/daemon/dependency.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/swarmkit/agent/exec" diff --git a/daemon/discovery/discovery.go b/daemon/discovery/discovery.go index 4b1b15faa0..092c57638a 100644 --- a/daemon/discovery/discovery.go +++ b/daemon/discovery/discovery.go @@ -1,4 +1,4 @@ -package discovery +package discovery // import "github.com/docker/docker/daemon/discovery" import ( "errors" diff --git a/daemon/discovery/discovery_test.go b/daemon/discovery/discovery_test.go index d5c9966a3c..4560af2878 100644 --- a/daemon/discovery/discovery_test.go +++ b/daemon/discovery/discovery_test.go @@ -1,4 +1,4 @@ -package discovery +package discovery // import "github.com/docker/docker/daemon/discovery" import ( "fmt" diff --git a/daemon/disk_usage.go b/daemon/disk_usage.go index c9b86604b1..2ccafbbbf1 100644 --- a/daemon/disk_usage.go +++ b/daemon/disk_usage.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/errors.go b/daemon/errors.go index e3a16b0586..8aa6b61a80 100644 --- a/daemon/errors.go +++ b/daemon/errors.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/events.go b/daemon/events.go index e302a4f43d..2e594c0269 100644 --- a/daemon/events.go +++ b/daemon/events.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/events/events.go b/daemon/events/events.go index 6a4990fecf..31af271fe6 100644 --- a/daemon/events/events.go +++ b/daemon/events/events.go @@ -1,4 +1,4 @@ -package events +package events // import "github.com/docker/docker/daemon/events" import ( "sync" diff --git a/daemon/events/events_test.go b/daemon/events/events_test.go index d74f2580b9..d11521567f 100644 --- a/daemon/events/events_test.go +++ b/daemon/events/events_test.go @@ -1,4 +1,4 @@ -package events +package events // import "github.com/docker/docker/daemon/events" import ( "fmt" diff --git a/daemon/events/filter.go b/daemon/events/filter.go index 61e3459bf8..da06f18b06 100644 --- a/daemon/events/filter.go +++ b/daemon/events/filter.go @@ -1,4 +1,4 @@ -package events +package events // import "github.com/docker/docker/daemon/events" import ( "github.com/docker/distribution/reference" diff --git a/daemon/events/metrics.go b/daemon/events/metrics.go index c9a89ec0ed..199858d6e0 100644 --- a/daemon/events/metrics.go +++ b/daemon/events/metrics.go @@ -1,4 +1,4 @@ -package events +package events // import "github.com/docker/docker/daemon/events" import "github.com/docker/go-metrics" diff --git a/daemon/events/testutils/testutils.go b/daemon/events/testutils/testutils.go index 3544446e18..b6766adb90 100644 --- a/daemon/events/testutils/testutils.go +++ b/daemon/events/testutils/testutils.go @@ -1,4 +1,4 @@ -package testutils +package testutils // import "github.com/docker/docker/daemon/events/testutils" import ( "fmt" diff --git a/daemon/events_test.go b/daemon/events_test.go index 7048de2926..df089976f2 100644 --- a/daemon/events_test.go +++ b/daemon/events_test.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "testing" diff --git a/daemon/exec.go b/daemon/exec.go index 35c5831064..89c3c8969a 100644 --- a/daemon/exec.go +++ b/daemon/exec.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/exec/exec.go b/daemon/exec/exec.go index 08ec67dc3e..ca4e1aeb49 100644 --- a/daemon/exec/exec.go +++ b/daemon/exec/exec.go @@ -1,4 +1,4 @@ -package exec +package exec // import "github.com/docker/docker/daemon/exec" import ( "runtime" diff --git a/daemon/exec_linux.go b/daemon/exec_linux.go index 525ce01050..1ed26c2fcc 100644 --- a/daemon/exec_linux.go +++ b/daemon/exec_linux.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/docker/container" diff --git a/daemon/exec_windows.go b/daemon/exec_windows.go index d8754eb18d..c37ea9f31a 100644 --- a/daemon/exec_windows.go +++ b/daemon/exec_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/docker/container" diff --git a/daemon/export.go b/daemon/export.go index 3a5af632d7..1f788ad9a8 100644 --- a/daemon/export.go +++ b/daemon/export.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/getsize_unix.go b/daemon/getsize_unix.go index deefcd9f95..292108307c 100644 --- a/daemon/getsize_unix.go +++ b/daemon/getsize_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "runtime" diff --git a/daemon/graphdriver/aufs/aufs.go b/daemon/graphdriver/aufs/aufs.go index 393e548091..1817461d04 100644 --- a/daemon/graphdriver/aufs/aufs.go +++ b/daemon/graphdriver/aufs/aufs.go @@ -20,7 +20,7 @@ aufs driver directory structure */ -package aufs +package aufs // import "github.com/docker/docker/daemon/graphdriver/aufs" import ( "bufio" diff --git a/daemon/graphdriver/aufs/aufs_test.go b/daemon/graphdriver/aufs/aufs_test.go index a58f18a0dc..d0641abe35 100644 --- a/daemon/graphdriver/aufs/aufs_test.go +++ b/daemon/graphdriver/aufs/aufs_test.go @@ -1,6 +1,6 @@ // +build linux -package aufs +package aufs // import "github.com/docker/docker/daemon/graphdriver/aufs" import ( "crypto/sha256" diff --git a/daemon/graphdriver/aufs/dirs.go b/daemon/graphdriver/aufs/dirs.go index d2325fc46c..1ee47e40f6 100644 --- a/daemon/graphdriver/aufs/dirs.go +++ b/daemon/graphdriver/aufs/dirs.go @@ -1,6 +1,6 @@ // +build linux -package aufs +package aufs // import "github.com/docker/docker/daemon/graphdriver/aufs" import ( "bufio" diff --git a/daemon/graphdriver/aufs/mount.go b/daemon/graphdriver/aufs/mount.go index 8198f95a89..4781988488 100644 --- a/daemon/graphdriver/aufs/mount.go +++ b/daemon/graphdriver/aufs/mount.go @@ -1,6 +1,6 @@ // +build linux -package aufs +package aufs // import "github.com/docker/docker/daemon/graphdriver/aufs" import ( "os/exec" diff --git a/daemon/graphdriver/aufs/mount_linux.go b/daemon/graphdriver/aufs/mount_linux.go index 937104ba3f..8d5ad8f32d 100644 --- a/daemon/graphdriver/aufs/mount_linux.go +++ b/daemon/graphdriver/aufs/mount_linux.go @@ -1,4 +1,4 @@ -package aufs +package aufs // import "github.com/docker/docker/daemon/graphdriver/aufs" import "golang.org/x/sys/unix" diff --git a/daemon/graphdriver/aufs/mount_unsupported.go b/daemon/graphdriver/aufs/mount_unsupported.go index d030b06637..cf7f58c29e 100644 --- a/daemon/graphdriver/aufs/mount_unsupported.go +++ b/daemon/graphdriver/aufs/mount_unsupported.go @@ -1,6 +1,6 @@ // +build !linux -package aufs +package aufs // import "github.com/docker/docker/daemon/graphdriver/aufs" import "errors" diff --git a/daemon/graphdriver/btrfs/btrfs.go b/daemon/graphdriver/btrfs/btrfs.go index 54bb9b7902..f214ee98a0 100644 --- a/daemon/graphdriver/btrfs/btrfs.go +++ b/daemon/graphdriver/btrfs/btrfs.go @@ -1,6 +1,6 @@ // +build linux -package btrfs +package btrfs // import "github.com/docker/docker/daemon/graphdriver/btrfs" /* #include diff --git a/daemon/graphdriver/btrfs/btrfs_test.go b/daemon/graphdriver/btrfs/btrfs_test.go index 056b99b94b..b70e93bc2d 100644 --- a/daemon/graphdriver/btrfs/btrfs_test.go +++ b/daemon/graphdriver/btrfs/btrfs_test.go @@ -1,6 +1,6 @@ // +build linux -package btrfs +package btrfs // import "github.com/docker/docker/daemon/graphdriver/btrfs" import ( "os" diff --git a/daemon/graphdriver/btrfs/dummy_unsupported.go b/daemon/graphdriver/btrfs/dummy_unsupported.go index f07088887a..d7793f8794 100644 --- a/daemon/graphdriver/btrfs/dummy_unsupported.go +++ b/daemon/graphdriver/btrfs/dummy_unsupported.go @@ -1,3 +1,3 @@ // +build !linux !cgo -package btrfs +package btrfs // import "github.com/docker/docker/daemon/graphdriver/btrfs" diff --git a/daemon/graphdriver/btrfs/version.go b/daemon/graphdriver/btrfs/version.go index 73d90cdd71..2fb5c73555 100644 --- a/daemon/graphdriver/btrfs/version.go +++ b/daemon/graphdriver/btrfs/version.go @@ -1,6 +1,6 @@ // +build linux,!btrfs_noversion -package btrfs +package btrfs // import "github.com/docker/docker/daemon/graphdriver/btrfs" /* #include diff --git a/daemon/graphdriver/btrfs/version_none.go b/daemon/graphdriver/btrfs/version_none.go index f802fbc629..5c755f8177 100644 --- a/daemon/graphdriver/btrfs/version_none.go +++ b/daemon/graphdriver/btrfs/version_none.go @@ -1,6 +1,6 @@ // +build linux,btrfs_noversion -package btrfs +package btrfs // import "github.com/docker/docker/daemon/graphdriver/btrfs" // TODO(vbatts) remove this work-around once supported linux distros are on // btrfs utilities of >= 3.16.1 diff --git a/daemon/graphdriver/btrfs/version_test.go b/daemon/graphdriver/btrfs/version_test.go index d78d577179..465daadb0d 100644 --- a/daemon/graphdriver/btrfs/version_test.go +++ b/daemon/graphdriver/btrfs/version_test.go @@ -1,6 +1,6 @@ // +build linux,!btrfs_noversion -package btrfs +package btrfs // import "github.com/docker/docker/daemon/graphdriver/btrfs" import ( "testing" diff --git a/daemon/graphdriver/copy/copy.go b/daemon/graphdriver/copy/copy.go index 78518e8169..b5de71085e 100644 --- a/daemon/graphdriver/copy/copy.go +++ b/daemon/graphdriver/copy/copy.go @@ -1,6 +1,6 @@ // +build linux -package copy +package copy // import "github.com/docker/docker/daemon/graphdriver/copy" /* #include diff --git a/daemon/graphdriver/copy/copy_test.go b/daemon/graphdriver/copy/copy_test.go index d21699114d..6d4387c94e 100644 --- a/daemon/graphdriver/copy/copy_test.go +++ b/daemon/graphdriver/copy/copy_test.go @@ -1,6 +1,6 @@ // +build linux -package copy +package copy // import "github.com/docker/docker/daemon/graphdriver/copy" import ( "fmt" diff --git a/daemon/graphdriver/counter.go b/daemon/graphdriver/counter.go index 72551a38d4..53123f52ce 100644 --- a/daemon/graphdriver/counter.go +++ b/daemon/graphdriver/counter.go @@ -1,4 +1,4 @@ -package graphdriver +package graphdriver // import "github.com/docker/docker/daemon/graphdriver" import "sync" diff --git a/daemon/graphdriver/devmapper/device_setup.go b/daemon/graphdriver/devmapper/device_setup.go index ad61423651..4d7f35c406 100644 --- a/daemon/graphdriver/devmapper/device_setup.go +++ b/daemon/graphdriver/devmapper/device_setup.go @@ -1,4 +1,4 @@ -package devmapper +package devmapper // import "github.com/docker/docker/daemon/graphdriver/devmapper" import ( "bufio" diff --git a/daemon/graphdriver/devmapper/deviceset.go b/daemon/graphdriver/devmapper/deviceset.go index 4e850f0863..3926648e29 100644 --- a/daemon/graphdriver/devmapper/deviceset.go +++ b/daemon/graphdriver/devmapper/deviceset.go @@ -1,6 +1,6 @@ // +build linux -package devmapper +package devmapper // import "github.com/docker/docker/daemon/graphdriver/devmapper" import ( "bufio" diff --git a/daemon/graphdriver/devmapper/devmapper_doc.go b/daemon/graphdriver/devmapper/devmapper_doc.go index 9ab3e4f864..98ff5cf124 100644 --- a/daemon/graphdriver/devmapper/devmapper_doc.go +++ b/daemon/graphdriver/devmapper/devmapper_doc.go @@ -1,4 +1,4 @@ -package devmapper +package devmapper // import "github.com/docker/docker/daemon/graphdriver/devmapper" // Definition of struct dm_task and sub structures (from lvm2) // diff --git a/daemon/graphdriver/devmapper/devmapper_test.go b/daemon/graphdriver/devmapper/devmapper_test.go index 24e535869e..bda907a5d6 100644 --- a/daemon/graphdriver/devmapper/devmapper_test.go +++ b/daemon/graphdriver/devmapper/devmapper_test.go @@ -1,6 +1,6 @@ // +build linux -package devmapper +package devmapper // import "github.com/docker/docker/daemon/graphdriver/devmapper" import ( "fmt" diff --git a/daemon/graphdriver/devmapper/driver.go b/daemon/graphdriver/devmapper/driver.go index 23b34b0b52..53e05c3b78 100644 --- a/daemon/graphdriver/devmapper/driver.go +++ b/daemon/graphdriver/devmapper/driver.go @@ -1,6 +1,6 @@ // +build linux -package devmapper +package devmapper // import "github.com/docker/docker/daemon/graphdriver/devmapper" import ( "fmt" diff --git a/daemon/graphdriver/devmapper/mount.go b/daemon/graphdriver/devmapper/mount.go index 1dc3262d27..8058eafa03 100644 --- a/daemon/graphdriver/devmapper/mount.go +++ b/daemon/graphdriver/devmapper/mount.go @@ -1,6 +1,6 @@ // +build linux -package devmapper +package devmapper // import "github.com/docker/docker/daemon/graphdriver/devmapper" import ( "bytes" diff --git a/daemon/graphdriver/driver.go b/daemon/graphdriver/driver.go index ceb49b9818..a9e1957393 100644 --- a/daemon/graphdriver/driver.go +++ b/daemon/graphdriver/driver.go @@ -1,4 +1,4 @@ -package graphdriver +package graphdriver // import "github.com/docker/docker/daemon/graphdriver" import ( "fmt" diff --git a/daemon/graphdriver/driver_freebsd.go b/daemon/graphdriver/driver_freebsd.go index f9fded986b..cd83c4e21a 100644 --- a/daemon/graphdriver/driver_freebsd.go +++ b/daemon/graphdriver/driver_freebsd.go @@ -1,4 +1,4 @@ -package graphdriver +package graphdriver // import "github.com/docker/docker/daemon/graphdriver" import ( "syscall" diff --git a/daemon/graphdriver/driver_linux.go b/daemon/graphdriver/driver_linux.go index d2d7c9f64c..61c6b24a9c 100644 --- a/daemon/graphdriver/driver_linux.go +++ b/daemon/graphdriver/driver_linux.go @@ -1,4 +1,4 @@ -package graphdriver +package graphdriver // import "github.com/docker/docker/daemon/graphdriver" import ( "github.com/docker/docker/pkg/mount" diff --git a/daemon/graphdriver/driver_test.go b/daemon/graphdriver/driver_test.go index 40084be88d..777bac7af9 100644 --- a/daemon/graphdriver/driver_test.go +++ b/daemon/graphdriver/driver_test.go @@ -1,4 +1,4 @@ -package graphdriver +package graphdriver // import "github.com/docker/docker/daemon/graphdriver" import ( "io/ioutil" diff --git a/daemon/graphdriver/driver_unsupported.go b/daemon/graphdriver/driver_unsupported.go index f951e7674d..1f2e8f071b 100644 --- a/daemon/graphdriver/driver_unsupported.go +++ b/daemon/graphdriver/driver_unsupported.go @@ -1,6 +1,6 @@ // +build !linux,!windows,!freebsd -package graphdriver +package graphdriver // import "github.com/docker/docker/daemon/graphdriver" var ( // List of drivers that should be used in an order diff --git a/daemon/graphdriver/driver_windows.go b/daemon/graphdriver/driver_windows.go index 7411089b03..856b575e75 100644 --- a/daemon/graphdriver/driver_windows.go +++ b/daemon/graphdriver/driver_windows.go @@ -1,4 +1,4 @@ -package graphdriver +package graphdriver // import "github.com/docker/docker/daemon/graphdriver" var ( // List of drivers that should be used in order diff --git a/daemon/graphdriver/errors.go b/daemon/graphdriver/errors.go index dd52ee4ada..96d3544552 100644 --- a/daemon/graphdriver/errors.go +++ b/daemon/graphdriver/errors.go @@ -1,4 +1,4 @@ -package graphdriver +package graphdriver // import "github.com/docker/docker/daemon/graphdriver" const ( // ErrNotSupported returned when driver is not supported. diff --git a/daemon/graphdriver/fsdiff.go b/daemon/graphdriver/fsdiff.go index 533c5a7699..e1f368508a 100644 --- a/daemon/graphdriver/fsdiff.go +++ b/daemon/graphdriver/fsdiff.go @@ -1,4 +1,4 @@ -package graphdriver +package graphdriver // import "github.com/docker/docker/daemon/graphdriver" import ( "io" diff --git a/daemon/graphdriver/graphtest/graphbench_unix.go b/daemon/graphdriver/graphtest/graphbench_unix.go index c04394d519..2eb4184c0f 100644 --- a/daemon/graphdriver/graphtest/graphbench_unix.go +++ b/daemon/graphdriver/graphtest/graphbench_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd -package graphtest +package graphtest // import "github.com/docker/docker/daemon/graphdriver/graphtest" import ( "io" diff --git a/daemon/graphdriver/graphtest/graphtest_unix.go b/daemon/graphdriver/graphtest/graphtest_unix.go index da9443e098..a7bdd8cdaa 100644 --- a/daemon/graphdriver/graphtest/graphtest_unix.go +++ b/daemon/graphdriver/graphtest/graphtest_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd -package graphtest +package graphtest // import "github.com/docker/docker/daemon/graphdriver/graphtest" import ( "bytes" diff --git a/daemon/graphdriver/graphtest/graphtest_windows.go b/daemon/graphdriver/graphtest/graphtest_windows.go index a50c5211e3..c6a03f341e 100644 --- a/daemon/graphdriver/graphtest/graphtest_windows.go +++ b/daemon/graphdriver/graphtest/graphtest_windows.go @@ -1 +1 @@ -package graphtest +package graphtest // import "github.com/docker/docker/daemon/graphdriver/graphtest" diff --git a/daemon/graphdriver/graphtest/testutil.go b/daemon/graphdriver/graphtest/testutil.go index c1ef1162b8..ea9952858f 100644 --- a/daemon/graphdriver/graphtest/testutil.go +++ b/daemon/graphdriver/graphtest/testutil.go @@ -1,4 +1,4 @@ -package graphtest +package graphtest // import "github.com/docker/docker/daemon/graphdriver/graphtest" import ( "bytes" diff --git a/daemon/graphdriver/graphtest/testutil_unix.go b/daemon/graphdriver/graphtest/testutil_unix.go index b5dec43fb3..4659bf2a19 100644 --- a/daemon/graphdriver/graphtest/testutil_unix.go +++ b/daemon/graphdriver/graphtest/testutil_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd -package graphtest +package graphtest // import "github.com/docker/docker/daemon/graphdriver/graphtest" import ( "os" diff --git a/daemon/graphdriver/lcow/lcow.go b/daemon/graphdriver/lcow/lcow.go index 058c69fd97..04701c9832 100644 --- a/daemon/graphdriver/lcow/lcow.go +++ b/daemon/graphdriver/lcow/lcow.go @@ -53,7 +53,7 @@ // TODO: Grab logs from SVM at terminate or errors -package lcow +package lcow // import "github.com/docker/docker/daemon/graphdriver/lcow" import ( "encoding/json" diff --git a/daemon/graphdriver/lcow/lcow_svm.go b/daemon/graphdriver/lcow/lcow_svm.go index 87d2eed8f4..9a27ac9496 100644 --- a/daemon/graphdriver/lcow/lcow_svm.go +++ b/daemon/graphdriver/lcow/lcow_svm.go @@ -1,6 +1,6 @@ // +build windows -package lcow +package lcow // import "github.com/docker/docker/daemon/graphdriver/lcow" import ( "errors" diff --git a/daemon/graphdriver/lcow/remotefs.go b/daemon/graphdriver/lcow/remotefs.go index 148e3c0a2d..29f15fd24c 100644 --- a/daemon/graphdriver/lcow/remotefs.go +++ b/daemon/graphdriver/lcow/remotefs.go @@ -1,6 +1,6 @@ // +build windows -package lcow +package lcow // import "github.com/docker/docker/daemon/graphdriver/lcow" import ( "bytes" diff --git a/daemon/graphdriver/lcow/remotefs_file.go b/daemon/graphdriver/lcow/remotefs_file.go index 2a561428d3..1f00bfff46 100644 --- a/daemon/graphdriver/lcow/remotefs_file.go +++ b/daemon/graphdriver/lcow/remotefs_file.go @@ -1,6 +1,6 @@ // +build windows -package lcow +package lcow // import "github.com/docker/docker/daemon/graphdriver/lcow" import ( "bytes" diff --git a/daemon/graphdriver/lcow/remotefs_filedriver.go b/daemon/graphdriver/lcow/remotefs_filedriver.go index a3e0d9e9f5..f335868af6 100644 --- a/daemon/graphdriver/lcow/remotefs_filedriver.go +++ b/daemon/graphdriver/lcow/remotefs_filedriver.go @@ -1,6 +1,6 @@ // +build windows -package lcow +package lcow // import "github.com/docker/docker/daemon/graphdriver/lcow" import ( "bytes" diff --git a/daemon/graphdriver/lcow/remotefs_pathdriver.go b/daemon/graphdriver/lcow/remotefs_pathdriver.go index 95d3e715a2..74895b0465 100644 --- a/daemon/graphdriver/lcow/remotefs_pathdriver.go +++ b/daemon/graphdriver/lcow/remotefs_pathdriver.go @@ -1,6 +1,6 @@ // +build windows -package lcow +package lcow // import "github.com/docker/docker/daemon/graphdriver/lcow" import ( "errors" diff --git a/daemon/graphdriver/overlay/overlay.go b/daemon/graphdriver/overlay/overlay.go index 6b2e1dd4ad..3fb823f57a 100644 --- a/daemon/graphdriver/overlay/overlay.go +++ b/daemon/graphdriver/overlay/overlay.go @@ -1,6 +1,6 @@ // +build linux -package overlay +package overlay // import "github.com/docker/docker/daemon/graphdriver/overlay" import ( "bufio" diff --git a/daemon/graphdriver/overlay/overlay_test.go b/daemon/graphdriver/overlay/overlay_test.go index 34b6d801fd..b270122c63 100644 --- a/daemon/graphdriver/overlay/overlay_test.go +++ b/daemon/graphdriver/overlay/overlay_test.go @@ -1,6 +1,6 @@ // +build linux -package overlay +package overlay // import "github.com/docker/docker/daemon/graphdriver/overlay" import ( "testing" diff --git a/daemon/graphdriver/overlay/overlay_unsupported.go b/daemon/graphdriver/overlay/overlay_unsupported.go index 3dbb4de44e..8fc06ffecf 100644 --- a/daemon/graphdriver/overlay/overlay_unsupported.go +++ b/daemon/graphdriver/overlay/overlay_unsupported.go @@ -1,3 +1,3 @@ // +build !linux -package overlay +package overlay // import "github.com/docker/docker/daemon/graphdriver/overlay" diff --git a/daemon/graphdriver/overlay2/check.go b/daemon/graphdriver/overlay2/check.go index c1c44200fd..beae22535b 100644 --- a/daemon/graphdriver/overlay2/check.go +++ b/daemon/graphdriver/overlay2/check.go @@ -1,6 +1,6 @@ // +build linux -package overlay2 +package overlay2 // import "github.com/docker/docker/daemon/graphdriver/overlay2" import ( "fmt" diff --git a/daemon/graphdriver/overlay2/mount.go b/daemon/graphdriver/overlay2/mount.go index e59178c669..da409fc81a 100644 --- a/daemon/graphdriver/overlay2/mount.go +++ b/daemon/graphdriver/overlay2/mount.go @@ -1,6 +1,6 @@ // +build linux -package overlay2 +package overlay2 // import "github.com/docker/docker/daemon/graphdriver/overlay2" import ( "bytes" diff --git a/daemon/graphdriver/overlay2/overlay.go b/daemon/graphdriver/overlay2/overlay.go index ce29f16d70..722ba080f7 100644 --- a/daemon/graphdriver/overlay2/overlay.go +++ b/daemon/graphdriver/overlay2/overlay.go @@ -1,6 +1,6 @@ // +build linux -package overlay2 +package overlay2 // import "github.com/docker/docker/daemon/graphdriver/overlay2" import ( "bufio" diff --git a/daemon/graphdriver/overlay2/overlay_test.go b/daemon/graphdriver/overlay2/overlay_test.go index 2ff0b339e3..38b2c7ca71 100644 --- a/daemon/graphdriver/overlay2/overlay_test.go +++ b/daemon/graphdriver/overlay2/overlay_test.go @@ -1,6 +1,6 @@ // +build linux -package overlay2 +package overlay2 // import "github.com/docker/docker/daemon/graphdriver/overlay2" import ( "io/ioutil" diff --git a/daemon/graphdriver/overlay2/overlay_unsupported.go b/daemon/graphdriver/overlay2/overlay_unsupported.go index e5ac4ca8c6..68b75a366a 100644 --- a/daemon/graphdriver/overlay2/overlay_unsupported.go +++ b/daemon/graphdriver/overlay2/overlay_unsupported.go @@ -1,3 +1,3 @@ // +build !linux -package overlay2 +package overlay2 // import "github.com/docker/docker/daemon/graphdriver/overlay2" diff --git a/daemon/graphdriver/overlay2/randomid.go b/daemon/graphdriver/overlay2/randomid.go index 30d6f3b1cf..842c06127f 100644 --- a/daemon/graphdriver/overlay2/randomid.go +++ b/daemon/graphdriver/overlay2/randomid.go @@ -1,6 +1,6 @@ // +build linux -package overlay2 +package overlay2 // import "github.com/docker/docker/daemon/graphdriver/overlay2" import ( "crypto/rand" diff --git a/daemon/graphdriver/overlayutils/overlayutils.go b/daemon/graphdriver/overlayutils/overlayutils.go index 9f71c60d51..7058688328 100644 --- a/daemon/graphdriver/overlayutils/overlayutils.go +++ b/daemon/graphdriver/overlayutils/overlayutils.go @@ -1,6 +1,6 @@ // +build linux -package overlayutils +package overlayutils // import "github.com/docker/docker/daemon/graphdriver/overlayutils" import ( "fmt" diff --git a/daemon/graphdriver/plugin.go b/daemon/graphdriver/plugin.go index 5d433e5196..2b69f54856 100644 --- a/daemon/graphdriver/plugin.go +++ b/daemon/graphdriver/plugin.go @@ -1,4 +1,4 @@ -package graphdriver +package graphdriver // import "github.com/docker/docker/daemon/graphdriver" import ( "fmt" diff --git a/daemon/graphdriver/proxy.go b/daemon/graphdriver/proxy.go index 81ef872ad9..d9c8639977 100644 --- a/daemon/graphdriver/proxy.go +++ b/daemon/graphdriver/proxy.go @@ -1,4 +1,4 @@ -package graphdriver +package graphdriver // import "github.com/docker/docker/daemon/graphdriver" import ( "errors" diff --git a/daemon/graphdriver/quota/errors.go b/daemon/graphdriver/quota/errors.go index 6d755904a8..68e797470d 100644 --- a/daemon/graphdriver/quota/errors.go +++ b/daemon/graphdriver/quota/errors.go @@ -1,4 +1,4 @@ -package quota +package quota // import "github.com/docker/docker/daemon/graphdriver/quota" import "github.com/docker/docker/errdefs" diff --git a/daemon/graphdriver/quota/projectquota.go b/daemon/graphdriver/quota/projectquota.go index 8efe5cd8a1..93e85823af 100644 --- a/daemon/graphdriver/quota/projectquota.go +++ b/daemon/graphdriver/quota/projectquota.go @@ -9,7 +9,7 @@ // for both xfs/ext4 for kernel version >= v4.5 // -package quota +package quota // import "github.com/docker/docker/daemon/graphdriver/quota" /* #include diff --git a/daemon/graphdriver/quota/projectquota_test.go b/daemon/graphdriver/quota/projectquota_test.go index b5091472f4..939044fdc3 100644 --- a/daemon/graphdriver/quota/projectquota_test.go +++ b/daemon/graphdriver/quota/projectquota_test.go @@ -1,6 +1,6 @@ // +build linux -package quota +package quota // import "github.com/docker/docker/daemon/graphdriver/quota" import ( "io" diff --git a/daemon/graphdriver/register/register_aufs.go b/daemon/graphdriver/register/register_aufs.go index 262954d6e3..ec18d1d377 100644 --- a/daemon/graphdriver/register/register_aufs.go +++ b/daemon/graphdriver/register/register_aufs.go @@ -1,6 +1,6 @@ // +build !exclude_graphdriver_aufs,linux -package register +package register // import "github.com/docker/docker/daemon/graphdriver/register" import ( // register the aufs graphdriver diff --git a/daemon/graphdriver/register/register_btrfs.go b/daemon/graphdriver/register/register_btrfs.go index f456cc5ce5..2f8c67056b 100644 --- a/daemon/graphdriver/register/register_btrfs.go +++ b/daemon/graphdriver/register/register_btrfs.go @@ -1,6 +1,6 @@ // +build !exclude_graphdriver_btrfs,linux -package register +package register // import "github.com/docker/docker/daemon/graphdriver/register" import ( // register the btrfs graphdriver diff --git a/daemon/graphdriver/register/register_devicemapper.go b/daemon/graphdriver/register/register_devicemapper.go index 09dfb71eb7..ccbb8bfabe 100644 --- a/daemon/graphdriver/register/register_devicemapper.go +++ b/daemon/graphdriver/register/register_devicemapper.go @@ -1,6 +1,6 @@ // +build !exclude_graphdriver_devicemapper,!static_build,linux -package register +package register // import "github.com/docker/docker/daemon/graphdriver/register" import ( // register the devmapper graphdriver diff --git a/daemon/graphdriver/register/register_overlay.go b/daemon/graphdriver/register/register_overlay.go index 3a9526420f..a2e384d548 100644 --- a/daemon/graphdriver/register/register_overlay.go +++ b/daemon/graphdriver/register/register_overlay.go @@ -1,6 +1,6 @@ // +build !exclude_graphdriver_overlay,linux -package register +package register // import "github.com/docker/docker/daemon/graphdriver/register" import ( // register the overlay graphdriver diff --git a/daemon/graphdriver/register/register_overlay2.go b/daemon/graphdriver/register/register_overlay2.go index b2da0f4763..bcd2cee20e 100644 --- a/daemon/graphdriver/register/register_overlay2.go +++ b/daemon/graphdriver/register/register_overlay2.go @@ -1,6 +1,6 @@ // +build !exclude_graphdriver_overlay2,linux -package register +package register // import "github.com/docker/docker/daemon/graphdriver/register" import ( // register the overlay2 graphdriver diff --git a/daemon/graphdriver/register/register_vfs.go b/daemon/graphdriver/register/register_vfs.go index 98fad23b20..26f33a21ba 100644 --- a/daemon/graphdriver/register/register_vfs.go +++ b/daemon/graphdriver/register/register_vfs.go @@ -1,4 +1,4 @@ -package register +package register // import "github.com/docker/docker/daemon/graphdriver/register" import ( // register vfs diff --git a/daemon/graphdriver/register/register_windows.go b/daemon/graphdriver/register/register_windows.go index 5bb1fd62a8..cd612cbea9 100644 --- a/daemon/graphdriver/register/register_windows.go +++ b/daemon/graphdriver/register/register_windows.go @@ -1,4 +1,4 @@ -package register +package register // import "github.com/docker/docker/daemon/graphdriver/register" import ( // register the windows graph drivers diff --git a/daemon/graphdriver/register/register_zfs.go b/daemon/graphdriver/register/register_zfs.go index 8c31c415f4..b137ad25b7 100644 --- a/daemon/graphdriver/register/register_zfs.go +++ b/daemon/graphdriver/register/register_zfs.go @@ -1,6 +1,6 @@ // +build !exclude_graphdriver_zfs,linux !exclude_graphdriver_zfs,freebsd -package register +package register // import "github.com/docker/docker/daemon/graphdriver/register" import ( // register the zfs driver diff --git a/daemon/graphdriver/vfs/copy_linux.go b/daemon/graphdriver/vfs/copy_linux.go index 1a63a11807..7276b3837f 100644 --- a/daemon/graphdriver/vfs/copy_linux.go +++ b/daemon/graphdriver/vfs/copy_linux.go @@ -1,4 +1,4 @@ -package vfs +package vfs // import "github.com/docker/docker/daemon/graphdriver/vfs" import "github.com/docker/docker/daemon/graphdriver/copy" diff --git a/daemon/graphdriver/vfs/copy_unsupported.go b/daemon/graphdriver/vfs/copy_unsupported.go index fcc4b691a0..894ff02f02 100644 --- a/daemon/graphdriver/vfs/copy_unsupported.go +++ b/daemon/graphdriver/vfs/copy_unsupported.go @@ -1,6 +1,6 @@ // +build !linux -package vfs +package vfs // import "github.com/docker/docker/daemon/graphdriver/vfs" import "github.com/docker/docker/pkg/chrootarchive" diff --git a/daemon/graphdriver/vfs/driver.go b/daemon/graphdriver/vfs/driver.go index 5f9cad4aef..c23c882ab2 100644 --- a/daemon/graphdriver/vfs/driver.go +++ b/daemon/graphdriver/vfs/driver.go @@ -1,4 +1,4 @@ -package vfs +package vfs // import "github.com/docker/docker/daemon/graphdriver/vfs" import ( "fmt" diff --git a/daemon/graphdriver/vfs/quota_linux.go b/daemon/graphdriver/vfs/quota_linux.go index f871befbaa..0d5c3a7b98 100644 --- a/daemon/graphdriver/vfs/quota_linux.go +++ b/daemon/graphdriver/vfs/quota_linux.go @@ -1,4 +1,4 @@ -package vfs +package vfs // import "github.com/docker/docker/daemon/graphdriver/vfs" import ( "github.com/docker/docker/daemon/graphdriver/quota" diff --git a/daemon/graphdriver/vfs/quota_unsupported.go b/daemon/graphdriver/vfs/quota_unsupported.go index 9cca53d372..3ae60ac07c 100644 --- a/daemon/graphdriver/vfs/quota_unsupported.go +++ b/daemon/graphdriver/vfs/quota_unsupported.go @@ -1,6 +1,6 @@ // +build !linux -package vfs +package vfs // import "github.com/docker/docker/daemon/graphdriver/vfs" import "github.com/docker/docker/daemon/graphdriver/quota" diff --git a/daemon/graphdriver/vfs/vfs_test.go b/daemon/graphdriver/vfs/vfs_test.go index 16dc1357f1..7c59ec32e2 100644 --- a/daemon/graphdriver/vfs/vfs_test.go +++ b/daemon/graphdriver/vfs/vfs_test.go @@ -1,6 +1,6 @@ // +build linux -package vfs +package vfs // import "github.com/docker/docker/daemon/graphdriver/vfs" import ( "testing" diff --git a/daemon/graphdriver/windows/windows.go b/daemon/graphdriver/windows/windows.go index 3c05a01b05..b4fec2eb9d 100644 --- a/daemon/graphdriver/windows/windows.go +++ b/daemon/graphdriver/windows/windows.go @@ -1,6 +1,6 @@ //+build windows -package windows +package windows // import "github.com/docker/docker/daemon/graphdriver/windows" import ( "bufio" diff --git a/daemon/graphdriver/zfs/zfs.go b/daemon/graphdriver/zfs/zfs.go index 9ab5d87ad0..507fa8402e 100644 --- a/daemon/graphdriver/zfs/zfs.go +++ b/daemon/graphdriver/zfs/zfs.go @@ -1,6 +1,6 @@ // +build linux freebsd -package zfs +package zfs // import "github.com/docker/docker/daemon/graphdriver/zfs" import ( "fmt" diff --git a/daemon/graphdriver/zfs/zfs_freebsd.go b/daemon/graphdriver/zfs/zfs_freebsd.go index bbc3216fc2..e5abf0de6e 100644 --- a/daemon/graphdriver/zfs/zfs_freebsd.go +++ b/daemon/graphdriver/zfs/zfs_freebsd.go @@ -1,4 +1,4 @@ -package zfs +package zfs // import "github.com/docker/docker/daemon/graphdriver/zfs" import ( "fmt" diff --git a/daemon/graphdriver/zfs/zfs_linux.go b/daemon/graphdriver/zfs/zfs_linux.go index 62ef63528a..956bb0e7a5 100644 --- a/daemon/graphdriver/zfs/zfs_linux.go +++ b/daemon/graphdriver/zfs/zfs_linux.go @@ -1,4 +1,4 @@ -package zfs +package zfs // import "github.com/docker/docker/daemon/graphdriver/zfs" import ( "github.com/docker/docker/daemon/graphdriver" diff --git a/daemon/graphdriver/zfs/zfs_test.go b/daemon/graphdriver/zfs/zfs_test.go index 2eb85c4d83..b5d6cb18c7 100644 --- a/daemon/graphdriver/zfs/zfs_test.go +++ b/daemon/graphdriver/zfs/zfs_test.go @@ -1,6 +1,6 @@ // +build linux -package zfs +package zfs // import "github.com/docker/docker/daemon/graphdriver/zfs" import ( "testing" diff --git a/daemon/graphdriver/zfs/zfs_unsupported.go b/daemon/graphdriver/zfs/zfs_unsupported.go index 643b169bc5..1b77030684 100644 --- a/daemon/graphdriver/zfs/zfs_unsupported.go +++ b/daemon/graphdriver/zfs/zfs_unsupported.go @@ -1,6 +1,6 @@ // +build !linux,!freebsd -package zfs +package zfs // import "github.com/docker/docker/daemon/graphdriver/zfs" func checkRootdirFs(rootdir string) error { return nil diff --git a/daemon/health.go b/daemon/health.go index ff3d54d45d..3bbdc7ea21 100644 --- a/daemon/health.go +++ b/daemon/health.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "bytes" diff --git a/daemon/health_test.go b/daemon/health_test.go index 479ff24c52..db166317fd 100644 --- a/daemon/health_test.go +++ b/daemon/health_test.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "testing" diff --git a/daemon/image.go b/daemon/image.go index c2afa02f16..53df7417d0 100644 --- a/daemon/image.go +++ b/daemon/image.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/image_delete.go b/daemon/image_delete.go index c5dc578294..c591390b4f 100644 --- a/daemon/image_delete.go +++ b/daemon/image_delete.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/image_exporter.go b/daemon/image_exporter.go index 4b85b30e14..d746236af9 100644 --- a/daemon/image_exporter.go +++ b/daemon/image_exporter.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "io" diff --git a/daemon/image_history.go b/daemon/image_history.go index 9cb9efc3c0..58dd59d3a7 100644 --- a/daemon/image_history.go +++ b/daemon/image_history.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/image_inspect.go b/daemon/image_inspect.go index 6d76c0a947..066466e047 100644 --- a/daemon/image_inspect.go +++ b/daemon/image_inspect.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "time" diff --git a/daemon/image_pull.go b/daemon/image_pull.go index 318e3582d3..cd3ef90b92 100644 --- a/daemon/image_pull.go +++ b/daemon/image_pull.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "io" diff --git a/daemon/image_push.go b/daemon/image_push.go index a98fe1fd1c..b5bdb74fb6 100644 --- a/daemon/image_push.go +++ b/daemon/image_push.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "io" diff --git a/daemon/image_tag.go b/daemon/image_tag.go index a955f7d970..80abd9f158 100644 --- a/daemon/image_tag.go +++ b/daemon/image_tag.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/distribution/reference" diff --git a/daemon/images.go b/daemon/images.go index 5d388581f0..7e2a9418c7 100644 --- a/daemon/images.go +++ b/daemon/images.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "encoding/json" diff --git a/daemon/import.go b/daemon/import.go index bd4a3fdfca..01b7906888 100644 --- a/daemon/import.go +++ b/daemon/import.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "encoding/json" diff --git a/daemon/info.go b/daemon/info.go index 3a28834014..c73734ded7 100644 --- a/daemon/info.go +++ b/daemon/info.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/info_unix.go b/daemon/info_unix.go index 9433434bcb..56be9c06fb 100644 --- a/daemon/info_unix.go +++ b/daemon/info_unix.go @@ -1,6 +1,6 @@ // +build !windows -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/info_unix_test.go b/daemon/info_unix_test.go index ef36c40e39..92a336162a 100644 --- a/daemon/info_unix_test.go +++ b/daemon/info_unix_test.go @@ -1,6 +1,6 @@ // +build !windows -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "testing" diff --git a/daemon/info_windows.go b/daemon/info_windows.go index c700911eb0..e452369fc8 100644 --- a/daemon/info_windows.go +++ b/daemon/info_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/docker/api/types" diff --git a/daemon/initlayer/setup_unix.go b/daemon/initlayer/setup_unix.go index a02cea6f37..035f62075f 100644 --- a/daemon/initlayer/setup_unix.go +++ b/daemon/initlayer/setup_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd -package initlayer +package initlayer // import "github.com/docker/docker/daemon/initlayer" import ( "os" diff --git a/daemon/initlayer/setup_windows.go b/daemon/initlayer/setup_windows.go index ff78a4d0b0..1032092e62 100644 --- a/daemon/initlayer/setup_windows.go +++ b/daemon/initlayer/setup_windows.go @@ -1,4 +1,4 @@ -package initlayer +package initlayer // import "github.com/docker/docker/daemon/initlayer" import ( "github.com/docker/docker/pkg/containerfs" diff --git a/daemon/inspect.go b/daemon/inspect.go index cab4f9279c..c38cee5675 100644 --- a/daemon/inspect.go +++ b/daemon/inspect.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/inspect_linux.go b/daemon/inspect_linux.go index 8d334dcf90..77a4c44d79 100644 --- a/daemon/inspect_linux.go +++ b/daemon/inspect_linux.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/docker/api/types" diff --git a/daemon/inspect_windows.go b/daemon/inspect_windows.go index 5b12902dbc..12fda670df 100644 --- a/daemon/inspect_windows.go +++ b/daemon/inspect_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/docker/api/types" diff --git a/daemon/keys.go b/daemon/keys.go index 055d488a5d..946eaaab1c 100644 --- a/daemon/keys.go +++ b/daemon/keys.go @@ -1,6 +1,6 @@ // +build linux -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/keys_unsupported.go b/daemon/keys_unsupported.go index e49baf9454..2ccdb576d7 100644 --- a/daemon/keys_unsupported.go +++ b/daemon/keys_unsupported.go @@ -1,6 +1,6 @@ // +build !linux -package daemon +package daemon // import "github.com/docker/docker/daemon" // ModifyRootKeyLimit is a noop on unsupported platforms. func ModifyRootKeyLimit() error { diff --git a/daemon/kill.go b/daemon/kill.go index ad6104bfe9..5034c4df39 100644 --- a/daemon/kill.go +++ b/daemon/kill.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/links.go b/daemon/links.go index 219a502766..1639572fa8 100644 --- a/daemon/links.go +++ b/daemon/links.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "sync" diff --git a/daemon/links/links.go b/daemon/links/links.go index af15de046d..2bcb483259 100644 --- a/daemon/links/links.go +++ b/daemon/links/links.go @@ -1,4 +1,4 @@ -package links +package links // import "github.com/docker/docker/daemon/links" import ( "fmt" diff --git a/daemon/links/links_test.go b/daemon/links/links_test.go index b852c44435..e1b36dbbd9 100644 --- a/daemon/links/links_test.go +++ b/daemon/links/links_test.go @@ -1,4 +1,4 @@ -package links +package links // import "github.com/docker/docker/daemon/links" import ( "fmt" diff --git a/daemon/list.go b/daemon/list.go index 28ad2d912a..4c01d88391 100644 --- a/daemon/list.go +++ b/daemon/list.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/list_unix.go b/daemon/list_unix.go index 7b92c7c491..4f9e453bc2 100644 --- a/daemon/list_unix.go +++ b/daemon/list_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd -package daemon +package daemon // import "github.com/docker/docker/daemon" import "github.com/docker/docker/container" diff --git a/daemon/list_windows.go b/daemon/list_windows.go index ab563c535f..7c7b5fa856 100644 --- a/daemon/list_windows.go +++ b/daemon/list_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "strings" diff --git a/daemon/listeners/group_unix.go b/daemon/listeners/group_unix.go index e1d8774cae..9cc17eba7b 100644 --- a/daemon/listeners/group_unix.go +++ b/daemon/listeners/group_unix.go @@ -1,6 +1,6 @@ // +build !windows -package listeners +package listeners // import "github.com/docker/docker/daemon/listeners" import ( "fmt" diff --git a/daemon/listeners/listeners_linux.go b/daemon/listeners/listeners_linux.go index 7e0aaa237f..b0174bc6ee 100644 --- a/daemon/listeners/listeners_linux.go +++ b/daemon/listeners/listeners_linux.go @@ -1,4 +1,4 @@ -package listeners +package listeners // import "github.com/docker/docker/daemon/listeners" import ( "crypto/tls" diff --git a/daemon/listeners/listeners_windows.go b/daemon/listeners/listeners_windows.go index 5b5a470fc6..73f5f79e4b 100644 --- a/daemon/listeners/listeners_windows.go +++ b/daemon/listeners/listeners_windows.go @@ -1,4 +1,4 @@ -package listeners +package listeners // import "github.com/docker/docker/daemon/listeners" import ( "crypto/tls" diff --git a/daemon/logdrivers_linux.go b/daemon/logdrivers_linux.go index ad343c1e8e..6ddcd2fc8d 100644 --- a/daemon/logdrivers_linux.go +++ b/daemon/logdrivers_linux.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( // Importing packages here only to make sure their init gets called and diff --git a/daemon/logdrivers_windows.go b/daemon/logdrivers_windows.go index 9f99c618c6..62e7a6f95b 100644 --- a/daemon/logdrivers_windows.go +++ b/daemon/logdrivers_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( // Importing packages here only to make sure their init gets called and diff --git a/daemon/logger/adapter.go b/daemon/logger/adapter.go index 5817913cbc..016e0c2353 100644 --- a/daemon/logger/adapter.go +++ b/daemon/logger/adapter.go @@ -1,4 +1,4 @@ -package logger +package logger // import "github.com/docker/docker/daemon/logger" import ( "io" diff --git a/daemon/logger/adapter_test.go b/daemon/logger/adapter_test.go index b8c069ffbe..25abab5717 100644 --- a/daemon/logger/adapter_test.go +++ b/daemon/logger/adapter_test.go @@ -1,4 +1,4 @@ -package logger +package logger // import "github.com/docker/docker/daemon/logger" import ( "encoding/binary" diff --git a/daemon/logger/awslogs/cloudwatchlogs.go b/daemon/logger/awslogs/cloudwatchlogs.go index d3ebeb6999..835379b3b4 100644 --- a/daemon/logger/awslogs/cloudwatchlogs.go +++ b/daemon/logger/awslogs/cloudwatchlogs.go @@ -1,5 +1,5 @@ // Package awslogs provides the logdriver for forwarding container logs to Amazon CloudWatch Logs -package awslogs +package awslogs // import "github.com/docker/docker/daemon/logger/awslogs" import ( "fmt" diff --git a/daemon/logger/awslogs/cloudwatchlogs_test.go b/daemon/logger/awslogs/cloudwatchlogs_test.go index bf5d6dd29e..080157b2ea 100644 --- a/daemon/logger/awslogs/cloudwatchlogs_test.go +++ b/daemon/logger/awslogs/cloudwatchlogs_test.go @@ -1,4 +1,4 @@ -package awslogs +package awslogs // import "github.com/docker/docker/daemon/logger/awslogs" import ( "errors" diff --git a/daemon/logger/awslogs/cwlogsiface_mock_test.go b/daemon/logger/awslogs/cwlogsiface_mock_test.go index d0a2ebaca4..155e602b8c 100644 --- a/daemon/logger/awslogs/cwlogsiface_mock_test.go +++ b/daemon/logger/awslogs/cwlogsiface_mock_test.go @@ -1,4 +1,4 @@ -package awslogs +package awslogs // import "github.com/docker/docker/daemon/logger/awslogs" import ( "fmt" diff --git a/daemon/logger/copier.go b/daemon/logger/copier.go index a1d4f06f8b..e38176dc74 100644 --- a/daemon/logger/copier.go +++ b/daemon/logger/copier.go @@ -1,4 +1,4 @@ -package logger +package logger // import "github.com/docker/docker/daemon/logger" import ( "bytes" diff --git a/daemon/logger/copier_test.go b/daemon/logger/copier_test.go index a911a703e9..62e1a56ecc 100644 --- a/daemon/logger/copier_test.go +++ b/daemon/logger/copier_test.go @@ -1,4 +1,4 @@ -package logger +package logger // import "github.com/docker/docker/daemon/logger" import ( "bytes" diff --git a/daemon/logger/etwlogs/etwlogs_windows.go b/daemon/logger/etwlogs/etwlogs_windows.go index aa530e7d9a..78d3477b61 100644 --- a/daemon/logger/etwlogs/etwlogs_windows.go +++ b/daemon/logger/etwlogs/etwlogs_windows.go @@ -10,7 +10,7 @@ // // Each container log message generates an ETW event that also contains: // the container name and ID, the timestamp, and the stream type. -package etwlogs +package etwlogs // import "github.com/docker/docker/daemon/logger/etwlogs" import ( "errors" diff --git a/daemon/logger/factory.go b/daemon/logger/factory.go index 2ef3bf8799..9723f7fc0c 100644 --- a/daemon/logger/factory.go +++ b/daemon/logger/factory.go @@ -1,4 +1,4 @@ -package logger +package logger // import "github.com/docker/docker/daemon/logger" import ( "fmt" diff --git a/daemon/logger/fluentd/fluentd.go b/daemon/logger/fluentd/fluentd.go index cde36d434a..e248eb646d 100644 --- a/daemon/logger/fluentd/fluentd.go +++ b/daemon/logger/fluentd/fluentd.go @@ -1,6 +1,6 @@ // Package fluentd provides the log driver for forwarding server logs // to fluentd endpoints. -package fluentd +package fluentd // import "github.com/docker/docker/daemon/logger/fluentd" import ( "fmt" diff --git a/daemon/logger/gcplogs/gcplogging.go b/daemon/logger/gcplogs/gcplogging.go index 5fdd137dd2..f0ffb84939 100644 --- a/daemon/logger/gcplogs/gcplogging.go +++ b/daemon/logger/gcplogs/gcplogging.go @@ -1,4 +1,4 @@ -package gcplogs +package gcplogs // import "github.com/docker/docker/daemon/logger/gcplogs" import ( "fmt" diff --git a/daemon/logger/gcplogs/gcplogging_linux.go b/daemon/logger/gcplogs/gcplogging_linux.go index 41a09362f2..27f8ef32f5 100644 --- a/daemon/logger/gcplogs/gcplogging_linux.go +++ b/daemon/logger/gcplogs/gcplogging_linux.go @@ -1,4 +1,4 @@ -package gcplogs +package gcplogs // import "github.com/docker/docker/daemon/logger/gcplogs" import ( "os" diff --git a/daemon/logger/gcplogs/gcplogging_others.go b/daemon/logger/gcplogs/gcplogging_others.go index 45e3b8d6d4..10a2cdc8cd 100644 --- a/daemon/logger/gcplogs/gcplogging_others.go +++ b/daemon/logger/gcplogs/gcplogging_others.go @@ -1,6 +1,6 @@ // +build !linux -package gcplogs +package gcplogs // import "github.com/docker/docker/daemon/logger/gcplogs" func ensureHomeIfIAmStatic() error { return nil diff --git a/daemon/logger/gelf/gelf.go b/daemon/logger/gelf/gelf.go index ab598c0d38..e9c860406a 100644 --- a/daemon/logger/gelf/gelf.go +++ b/daemon/logger/gelf/gelf.go @@ -1,6 +1,6 @@ // Package gelf provides the log driver for forwarding server logs to // endpoints that support the Graylog Extended Log Format. -package gelf +package gelf // import "github.com/docker/docker/daemon/logger/gelf" import ( "compress/flate" diff --git a/daemon/logger/gelf/gelf_test.go b/daemon/logger/gelf/gelf_test.go index 087c531231..a88d56ce16 100644 --- a/daemon/logger/gelf/gelf_test.go +++ b/daemon/logger/gelf/gelf_test.go @@ -1,6 +1,6 @@ // +build linux -package gelf +package gelf // import "github.com/docker/docker/daemon/logger/gelf" import ( "net" diff --git a/daemon/logger/journald/journald.go b/daemon/logger/journald/journald.go index ee6e5b68f7..47dbfb920c 100644 --- a/daemon/logger/journald/journald.go +++ b/daemon/logger/journald/journald.go @@ -2,7 +2,7 @@ // Package journald provides the log driver for forwarding server logs // to endpoints that receive the systemd format. -package journald +package journald // import "github.com/docker/docker/daemon/logger/journald" import ( "fmt" diff --git a/daemon/logger/journald/journald_test.go b/daemon/logger/journald/journald_test.go index 224423fd07..bd7bf7a3b3 100644 --- a/daemon/logger/journald/journald_test.go +++ b/daemon/logger/journald/journald_test.go @@ -1,6 +1,6 @@ // +build linux -package journald +package journald // import "github.com/docker/docker/daemon/logger/journald" import ( "testing" diff --git a/daemon/logger/journald/journald_unsupported.go b/daemon/logger/journald/journald_unsupported.go index d52ca92e4f..7899fc1214 100644 --- a/daemon/logger/journald/journald_unsupported.go +++ b/daemon/logger/journald/journald_unsupported.go @@ -1,6 +1,6 @@ // +build !linux -package journald +package journald // import "github.com/docker/docker/daemon/logger/journald" type journald struct { } diff --git a/daemon/logger/journald/read.go b/daemon/logger/journald/read.go index 6aff21f441..d4bcc62d9a 100644 --- a/daemon/logger/journald/read.go +++ b/daemon/logger/journald/read.go @@ -1,6 +1,6 @@ // +build linux,cgo,!static_build,journald -package journald +package journald // import "github.com/docker/docker/daemon/logger/journald" // #include // #include diff --git a/daemon/logger/journald/read_native.go b/daemon/logger/journald/read_native.go index bba6de55be..ab68cf4ba7 100644 --- a/daemon/logger/journald/read_native.go +++ b/daemon/logger/journald/read_native.go @@ -1,6 +1,6 @@ // +build linux,cgo,!static_build,journald,!journald_compat -package journald +package journald // import "github.com/docker/docker/daemon/logger/journald" // #cgo pkg-config: libsystemd import "C" diff --git a/daemon/logger/journald/read_native_compat.go b/daemon/logger/journald/read_native_compat.go index 3f7a43c59e..4806e130ef 100644 --- a/daemon/logger/journald/read_native_compat.go +++ b/daemon/logger/journald/read_native_compat.go @@ -1,6 +1,6 @@ // +build linux,cgo,!static_build,journald,journald_compat -package journald +package journald // import "github.com/docker/docker/daemon/logger/journald" // #cgo pkg-config: libsystemd-journal import "C" diff --git a/daemon/logger/journald/read_unsupported.go b/daemon/logger/journald/read_unsupported.go index b43abdcaf7..a66b666659 100644 --- a/daemon/logger/journald/read_unsupported.go +++ b/daemon/logger/journald/read_unsupported.go @@ -1,6 +1,6 @@ // +build !linux !cgo static_build !journald -package journald +package journald // import "github.com/docker/docker/daemon/logger/journald" func (s *journald) Close() error { return nil diff --git a/daemon/logger/jsonfilelog/jsonfilelog.go b/daemon/logger/jsonfilelog/jsonfilelog.go index 720a7c3b61..92484697d5 100644 --- a/daemon/logger/jsonfilelog/jsonfilelog.go +++ b/daemon/logger/jsonfilelog/jsonfilelog.go @@ -1,7 +1,7 @@ // Package jsonfilelog provides the default Logger implementation for // Docker logging. This logger logs to files on the host server in the // JSON format. -package jsonfilelog +package jsonfilelog // import "github.com/docker/docker/daemon/logger/jsonfilelog" import ( "bytes" diff --git a/daemon/logger/jsonfilelog/jsonfilelog_test.go b/daemon/logger/jsonfilelog/jsonfilelog_test.go index e988e862fd..2f74e26091 100644 --- a/daemon/logger/jsonfilelog/jsonfilelog_test.go +++ b/daemon/logger/jsonfilelog/jsonfilelog_test.go @@ -1,4 +1,4 @@ -package jsonfilelog +package jsonfilelog // import "github.com/docker/docker/daemon/logger/jsonfilelog" import ( "bytes" diff --git a/daemon/logger/jsonfilelog/jsonlog/jsonlog.go b/daemon/logger/jsonfilelog/jsonlog/jsonlog.go index 549e355855..74be8e7da0 100644 --- a/daemon/logger/jsonfilelog/jsonlog/jsonlog.go +++ b/daemon/logger/jsonfilelog/jsonlog/jsonlog.go @@ -1,4 +1,4 @@ -package jsonlog +package jsonlog // import "github.com/docker/docker/daemon/logger/jsonfilelog/jsonlog" import ( "time" diff --git a/daemon/logger/jsonfilelog/jsonlog/jsonlogbytes.go b/daemon/logger/jsonfilelog/jsonlog/jsonlogbytes.go index 37604ae549..577c718f63 100644 --- a/daemon/logger/jsonfilelog/jsonlog/jsonlogbytes.go +++ b/daemon/logger/jsonfilelog/jsonlog/jsonlogbytes.go @@ -1,4 +1,4 @@ -package jsonlog +package jsonlog // import "github.com/docker/docker/daemon/logger/jsonfilelog/jsonlog" import ( "bytes" diff --git a/daemon/logger/jsonfilelog/jsonlog/jsonlogbytes_test.go b/daemon/logger/jsonfilelog/jsonlog/jsonlogbytes_test.go index e52d32c037..3701124354 100644 --- a/daemon/logger/jsonfilelog/jsonlog/jsonlogbytes_test.go +++ b/daemon/logger/jsonfilelog/jsonlog/jsonlogbytes_test.go @@ -1,4 +1,4 @@ -package jsonlog +package jsonlog // import "github.com/docker/docker/daemon/logger/jsonfilelog/jsonlog" import ( "bytes" diff --git a/daemon/logger/jsonfilelog/jsonlog/time_marshalling.go b/daemon/logger/jsonfilelog/jsonlog/time_marshalling.go index 5fd8023e7c..1822ea5dbc 100644 --- a/daemon/logger/jsonfilelog/jsonlog/time_marshalling.go +++ b/daemon/logger/jsonfilelog/jsonlog/time_marshalling.go @@ -1,4 +1,4 @@ -package jsonlog +package jsonlog // import "github.com/docker/docker/daemon/logger/jsonfilelog/jsonlog" import ( "time" diff --git a/daemon/logger/jsonfilelog/jsonlog/time_marshalling_test.go b/daemon/logger/jsonfilelog/jsonlog/time_marshalling_test.go index 931a9d3d66..fee091eb6c 100644 --- a/daemon/logger/jsonfilelog/jsonlog/time_marshalling_test.go +++ b/daemon/logger/jsonfilelog/jsonlog/time_marshalling_test.go @@ -1,4 +1,4 @@ -package jsonlog +package jsonlog // import "github.com/docker/docker/daemon/logger/jsonfilelog/jsonlog" import ( "testing" diff --git a/daemon/logger/jsonfilelog/read.go b/daemon/logger/jsonfilelog/read.go index f190e01a56..ab1793bb72 100644 --- a/daemon/logger/jsonfilelog/read.go +++ b/daemon/logger/jsonfilelog/read.go @@ -1,4 +1,4 @@ -package jsonfilelog +package jsonfilelog // import "github.com/docker/docker/daemon/logger/jsonfilelog" import ( "encoding/json" diff --git a/daemon/logger/jsonfilelog/read_test.go b/daemon/logger/jsonfilelog/read_test.go index 599fdf9336..342b538c28 100644 --- a/daemon/logger/jsonfilelog/read_test.go +++ b/daemon/logger/jsonfilelog/read_test.go @@ -1,4 +1,4 @@ -package jsonfilelog +package jsonfilelog // import "github.com/docker/docker/daemon/logger/jsonfilelog" import ( "bytes" diff --git a/daemon/logger/logentries/logentries.go b/daemon/logger/logentries/logentries.go index 255e87d4b7..70a8baf66e 100644 --- a/daemon/logger/logentries/logentries.go +++ b/daemon/logger/logentries/logentries.go @@ -1,6 +1,6 @@ // Package logentries provides the log driver for forwarding server logs // to logentries endpoints. -package logentries +package logentries // import "github.com/docker/docker/daemon/logger/logentries" import ( "fmt" diff --git a/daemon/logger/logger.go b/daemon/logger/logger.go index dc25bebfc7..a548768bf8 100644 --- a/daemon/logger/logger.go +++ b/daemon/logger/logger.go @@ -5,7 +5,7 @@ // factory, which holds the contextual instance information that // allows multiple loggers of the same type to perform different // actions, such as logging to different locations. -package logger +package logger // import "github.com/docker/docker/daemon/logger" import ( "sync" diff --git a/daemon/logger/logger_test.go b/daemon/logger/logger_test.go index 15f9b8145b..3e29e22801 100644 --- a/daemon/logger/logger_test.go +++ b/daemon/logger/logger_test.go @@ -1,4 +1,4 @@ -package logger +package logger // import "github.com/docker/docker/daemon/logger" import ( "github.com/docker/docker/api/types/backend" diff --git a/daemon/logger/loggerutils/log_tag.go b/daemon/logger/loggerutils/log_tag.go index 7c170909a7..719512dbdb 100644 --- a/daemon/logger/loggerutils/log_tag.go +++ b/daemon/logger/loggerutils/log_tag.go @@ -1,4 +1,4 @@ -package loggerutils +package loggerutils // import "github.com/docker/docker/daemon/logger/loggerutils" import ( "bytes" diff --git a/daemon/logger/loggerutils/log_tag_test.go b/daemon/logger/loggerutils/log_tag_test.go index 1a6d9f1516..41957a8b19 100644 --- a/daemon/logger/loggerutils/log_tag_test.go +++ b/daemon/logger/loggerutils/log_tag_test.go @@ -1,4 +1,4 @@ -package loggerutils +package loggerutils // import "github.com/docker/docker/daemon/logger/loggerutils" import ( "testing" diff --git a/daemon/logger/loggerutils/logfile.go b/daemon/logger/loggerutils/logfile.go index 6a7a68909e..ff7a3323f9 100644 --- a/daemon/logger/loggerutils/logfile.go +++ b/daemon/logger/loggerutils/logfile.go @@ -1,4 +1,4 @@ -package loggerutils +package loggerutils // import "github.com/docker/docker/daemon/logger/loggerutils" import ( "bytes" diff --git a/daemon/logger/loggerutils/multireader/multireader.go b/daemon/logger/loggerutils/multireader/multireader.go index 1993f1d76c..e5ebac2266 100644 --- a/daemon/logger/loggerutils/multireader/multireader.go +++ b/daemon/logger/loggerutils/multireader/multireader.go @@ -1,4 +1,4 @@ -package multireader +package multireader // import "github.com/docker/docker/daemon/logger/loggerutils/multireader" import ( "bytes" diff --git a/daemon/logger/loggerutils/multireader/multireader_test.go b/daemon/logger/loggerutils/multireader/multireader_test.go index bd59b78ca7..15461c40de 100644 --- a/daemon/logger/loggerutils/multireader/multireader_test.go +++ b/daemon/logger/loggerutils/multireader/multireader_test.go @@ -1,4 +1,4 @@ -package multireader +package multireader // import "github.com/docker/docker/daemon/logger/loggerutils/multireader" import ( "bytes" diff --git a/daemon/logger/loginfo.go b/daemon/logger/loginfo.go index 4c930b9056..4c48235f5c 100644 --- a/daemon/logger/loginfo.go +++ b/daemon/logger/loginfo.go @@ -1,4 +1,4 @@ -package logger +package logger // import "github.com/docker/docker/daemon/logger" import ( "fmt" diff --git a/daemon/logger/plugin.go b/daemon/logger/plugin.go index bdccea5b21..209bec3e8a 100644 --- a/daemon/logger/plugin.go +++ b/daemon/logger/plugin.go @@ -1,4 +1,4 @@ -package logger +package logger // import "github.com/docker/docker/daemon/logger" import ( "fmt" diff --git a/daemon/logger/plugin_unix.go b/daemon/logger/plugin_unix.go index edf11af15e..6192f52eb8 100644 --- a/daemon/logger/plugin_unix.go +++ b/daemon/logger/plugin_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd -package logger +package logger // import "github.com/docker/docker/daemon/logger" import ( "context" diff --git a/daemon/logger/plugin_unsupported.go b/daemon/logger/plugin_unsupported.go index b649b0644e..2ad47cc077 100644 --- a/daemon/logger/plugin_unsupported.go +++ b/daemon/logger/plugin_unsupported.go @@ -1,6 +1,6 @@ // +build !linux,!freebsd -package logger +package logger // import "github.com/docker/docker/daemon/logger" import ( "errors" diff --git a/daemon/logger/proxy.go b/daemon/logger/proxy.go index 53860eba69..4a1c778108 100644 --- a/daemon/logger/proxy.go +++ b/daemon/logger/proxy.go @@ -1,4 +1,4 @@ -package logger +package logger // import "github.com/docker/docker/daemon/logger" import ( "errors" diff --git a/daemon/logger/ring.go b/daemon/logger/ring.go index c89897cfde..e940c62dac 100644 --- a/daemon/logger/ring.go +++ b/daemon/logger/ring.go @@ -1,4 +1,4 @@ -package logger +package logger // import "github.com/docker/docker/daemon/logger" import ( "errors" diff --git a/daemon/logger/ring_test.go b/daemon/logger/ring_test.go index 9afbb44d29..e774535fee 100644 --- a/daemon/logger/ring_test.go +++ b/daemon/logger/ring_test.go @@ -1,4 +1,4 @@ -package logger +package logger // import "github.com/docker/docker/daemon/logger" import ( "context" diff --git a/daemon/logger/splunk/splunk.go b/daemon/logger/splunk/splunk.go index 30ab7b7414..d1c690481a 100644 --- a/daemon/logger/splunk/splunk.go +++ b/daemon/logger/splunk/splunk.go @@ -1,6 +1,6 @@ // Package splunk provides the log driver for forwarding server logs to // Splunk HTTP Event Collector endpoint. -package splunk +package splunk // import "github.com/docker/docker/daemon/logger/splunk" import ( "bytes" diff --git a/daemon/logger/splunk/splunk_test.go b/daemon/logger/splunk/splunk_test.go index 97613771d2..796049c69c 100644 --- a/daemon/logger/splunk/splunk_test.go +++ b/daemon/logger/splunk/splunk_test.go @@ -1,4 +1,4 @@ -package splunk +package splunk // import "github.com/docker/docker/daemon/logger/splunk" import ( "compress/gzip" diff --git a/daemon/logger/splunk/splunkhecmock_test.go b/daemon/logger/splunk/splunkhecmock_test.go index 0135ac7ebe..a3a83ac103 100644 --- a/daemon/logger/splunk/splunkhecmock_test.go +++ b/daemon/logger/splunk/splunkhecmock_test.go @@ -1,4 +1,4 @@ -package splunk +package splunk // import "github.com/docker/docker/daemon/logger/splunk" import ( "compress/gzip" diff --git a/daemon/logger/syslog/syslog.go b/daemon/logger/syslog/syslog.go index b4cacd7af8..94bdee364a 100644 --- a/daemon/logger/syslog/syslog.go +++ b/daemon/logger/syslog/syslog.go @@ -1,5 +1,5 @@ // Package syslog provides the logdriver for forwarding server logs to syslog endpoints. -package syslog +package syslog // import "github.com/docker/docker/daemon/logger/syslog" import ( "crypto/tls" diff --git a/daemon/logger/syslog/syslog_test.go b/daemon/logger/syslog/syslog_test.go index 501561064b..4631788fbb 100644 --- a/daemon/logger/syslog/syslog_test.go +++ b/daemon/logger/syslog/syslog_test.go @@ -1,4 +1,4 @@ -package syslog +package syslog // import "github.com/docker/docker/daemon/logger/syslog" import ( "reflect" diff --git a/daemon/logger/templates/templates.go b/daemon/logger/templates/templates.go index f632e6e4b5..ab76d0f1c2 100644 --- a/daemon/logger/templates/templates.go +++ b/daemon/logger/templates/templates.go @@ -1,4 +1,4 @@ -package templates +package templates // import "github.com/docker/docker/daemon/logger/templates" import ( "bytes" diff --git a/daemon/logger/templates/templates_test.go b/daemon/logger/templates/templates_test.go index 6205e1dc71..5e71d96f26 100644 --- a/daemon/logger/templates/templates_test.go +++ b/daemon/logger/templates/templates_test.go @@ -1,4 +1,4 @@ -package templates +package templates // import "github.com/docker/docker/daemon/logger/templates" import ( "bytes" diff --git a/daemon/logs.go b/daemon/logs.go index c819768dc3..0701310326 100644 --- a/daemon/logs.go +++ b/daemon/logs.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "errors" diff --git a/daemon/logs_test.go b/daemon/logs_test.go index 0c36299e09..a32691a80c 100644 --- a/daemon/logs_test.go +++ b/daemon/logs_test.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "testing" diff --git a/daemon/metrics.go b/daemon/metrics.go index 92439ad148..b3f603c137 100644 --- a/daemon/metrics.go +++ b/daemon/metrics.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "path/filepath" diff --git a/daemon/metrics_unix.go b/daemon/metrics_unix.go index 6045939a58..ed40406c3e 100644 --- a/daemon/metrics_unix.go +++ b/daemon/metrics_unix.go @@ -1,6 +1,6 @@ // +build !windows -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "net" diff --git a/daemon/metrics_unsupported.go b/daemon/metrics_unsupported.go index 64dc1817a3..653c77fc32 100644 --- a/daemon/metrics_unsupported.go +++ b/daemon/metrics_unsupported.go @@ -1,6 +1,6 @@ // +build windows -package daemon +package daemon // import "github.com/docker/docker/daemon" import "github.com/docker/docker/pkg/plugingetter" diff --git a/daemon/monitor.go b/daemon/monitor.go index 6f6928a4d9..dbd14ebfbb 100644 --- a/daemon/monitor.go +++ b/daemon/monitor.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/monitor_linux.go b/daemon/monitor_linux.go index 0995758000..cb2aa72dbb 100644 --- a/daemon/monitor_linux.go +++ b/daemon/monitor_linux.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/docker/container" diff --git a/daemon/monitor_windows.go b/daemon/monitor_windows.go index dd5a09ada8..5db81347c6 100644 --- a/daemon/monitor_windows.go +++ b/daemon/monitor_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/mounts.go b/daemon/mounts.go index 35c6ed59a6..4639122681 100644 --- a/daemon/mounts.go +++ b/daemon/mounts.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/names.go b/daemon/names.go index 0e43738849..6c31949777 100644 --- a/daemon/names.go +++ b/daemon/names.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/names/names.go b/daemon/names/names.go index 26f6748a8f..22bba53d69 100644 --- a/daemon/names/names.go +++ b/daemon/names/names.go @@ -1,4 +1,4 @@ -package names +package names // import "github.com/docker/docker/daemon/names" import "regexp" diff --git a/daemon/network.go b/daemon/network.go index 1ae69e5094..2c2a96b343 100644 --- a/daemon/network.go +++ b/daemon/network.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/network/settings.go b/daemon/network/settings.go index 71343ff2bf..b0460ed6ae 100644 --- a/daemon/network/settings.go +++ b/daemon/network/settings.go @@ -1,4 +1,4 @@ -package network +package network // import "github.com/docker/docker/daemon/network" import ( "net" diff --git a/daemon/oci_linux.go b/daemon/oci_linux.go index dbc26e8efe..68243e8d21 100644 --- a/daemon/oci_linux.go +++ b/daemon/oci_linux.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/oci_linux_test.go b/daemon/oci_linux_test.go index f2f455f9c6..4af0ba96d0 100644 --- a/daemon/oci_linux_test.go +++ b/daemon/oci_linux_test.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "testing" diff --git a/daemon/oci_windows.go b/daemon/oci_windows.go index 86e0762a94..74440531d7 100644 --- a/daemon/oci_windows.go +++ b/daemon/oci_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/pause.go b/daemon/pause.go index 0b2ff1d2ed..be6ec1b92a 100644 --- a/daemon/pause.go +++ b/daemon/pause.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/prune.go b/daemon/prune.go index cf42f28728..7ed73f0594 100644 --- a/daemon/prune.go +++ b/daemon/prune.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/reload.go b/daemon/reload.go index fe92041c72..2ded7d5bd9 100644 --- a/daemon/reload.go +++ b/daemon/reload.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "encoding/json" diff --git a/daemon/reload_test.go b/daemon/reload_test.go index 9cc548d7bf..83e86fc5a0 100644 --- a/daemon/reload_test.go +++ b/daemon/reload_test.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "reflect" diff --git a/daemon/reload_unix.go b/daemon/reload_unix.go index cdc17452b9..9c1bb992af 100644 --- a/daemon/reload_unix.go +++ b/daemon/reload_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "bytes" diff --git a/daemon/reload_windows.go b/daemon/reload_windows.go index b7a4031eac..548466e8ed 100644 --- a/daemon/reload_windows.go +++ b/daemon/reload_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import "github.com/docker/docker/daemon/config" diff --git a/daemon/rename.go b/daemon/rename.go index fd13d898e2..2b2c48b292 100644 --- a/daemon/rename.go +++ b/daemon/rename.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "strings" diff --git a/daemon/resize.go b/daemon/resize.go index a992a073a5..369b8fdb3d 100644 --- a/daemon/resize.go +++ b/daemon/resize.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/restart.go b/daemon/restart.go index e030cfaed5..0f06dea267 100644 --- a/daemon/restart.go +++ b/daemon/restart.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/search.go b/daemon/search.go index 25744cb723..6d137d3d65 100644 --- a/daemon/search.go +++ b/daemon/search.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "strconv" diff --git a/daemon/search_test.go b/daemon/search_test.go index 85237192e9..0237b103b8 100644 --- a/daemon/search_test.go +++ b/daemon/search_test.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "errors" diff --git a/daemon/seccomp_disabled.go b/daemon/seccomp_disabled.go index ff1127b6c2..3855c7830e 100644 --- a/daemon/seccomp_disabled.go +++ b/daemon/seccomp_disabled.go @@ -1,6 +1,6 @@ // +build linux,!seccomp -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/seccomp_linux.go b/daemon/seccomp_linux.go index 3fce213490..66ab8c768c 100644 --- a/daemon/seccomp_linux.go +++ b/daemon/seccomp_linux.go @@ -1,6 +1,6 @@ // +build linux,seccomp -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/seccomp_unsupported.go b/daemon/seccomp_unsupported.go index b3691e96af..a323fe0be1 100644 --- a/daemon/seccomp_unsupported.go +++ b/daemon/seccomp_unsupported.go @@ -1,5 +1,5 @@ // +build !linux -package daemon +package daemon // import "github.com/docker/docker/daemon" var supportsSeccomp = false diff --git a/daemon/secrets.go b/daemon/secrets.go index 214391fe84..6d368a9fd7 100644 --- a/daemon/secrets.go +++ b/daemon/secrets.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( swarmtypes "github.com/docker/docker/api/types/swarm" diff --git a/daemon/secrets_linux.go b/daemon/secrets_linux.go index 6ae0117b73..2be70be31c 100644 --- a/daemon/secrets_linux.go +++ b/daemon/secrets_linux.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" func secretsSupported() bool { return true diff --git a/daemon/secrets_unsupported.go b/daemon/secrets_unsupported.go index d55e8624d7..edad69c569 100644 --- a/daemon/secrets_unsupported.go +++ b/daemon/secrets_unsupported.go @@ -1,6 +1,6 @@ // +build !linux,!windows -package daemon +package daemon // import "github.com/docker/docker/daemon" func secretsSupported() bool { return false diff --git a/daemon/secrets_windows.go b/daemon/secrets_windows.go index 6ae0117b73..2be70be31c 100644 --- a/daemon/secrets_windows.go +++ b/daemon/secrets_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" func secretsSupported() bool { return true diff --git a/daemon/selinux_linux.go b/daemon/selinux_linux.go index 46da7f1370..f87b30b738 100644 --- a/daemon/selinux_linux.go +++ b/daemon/selinux_linux.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import "github.com/opencontainers/selinux/go-selinux" diff --git a/daemon/selinux_unsupported.go b/daemon/selinux_unsupported.go index 25a56ad157..49d0d13bce 100644 --- a/daemon/selinux_unsupported.go +++ b/daemon/selinux_unsupported.go @@ -1,6 +1,6 @@ // +build !linux -package daemon +package daemon // import "github.com/docker/docker/daemon" func selinuxSetDisabled() { } diff --git a/daemon/start.go b/daemon/start.go index 707f40f3a0..2750df20b8 100644 --- a/daemon/start.go +++ b/daemon/start.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/start_unix.go b/daemon/start_unix.go index ca0183ec5c..52a34a9ac9 100644 --- a/daemon/start_unix.go +++ b/daemon/start_unix.go @@ -1,6 +1,6 @@ // +build !windows -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/start_windows.go b/daemon/start_windows.go index 55588be6ca..f4606f7a60 100644 --- a/daemon/start_windows.go +++ b/daemon/start_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/Microsoft/opengcs/client" diff --git a/daemon/stats.go b/daemon/stats.go index ec77ac01e5..c91d05302e 100644 --- a/daemon/stats.go +++ b/daemon/stats.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "encoding/json" diff --git a/daemon/stats/collector.go b/daemon/stats/collector.go index f13a8045d4..39c76128b0 100644 --- a/daemon/stats/collector.go +++ b/daemon/stats/collector.go @@ -1,4 +1,4 @@ -package stats +package stats // import "github.com/docker/docker/daemon/stats" import ( "time" diff --git a/daemon/stats/collector_unix.go b/daemon/stats/collector_unix.go index 6b1318a1bd..2480aceb51 100644 --- a/daemon/stats/collector_unix.go +++ b/daemon/stats/collector_unix.go @@ -1,6 +1,6 @@ // +build !windows -package stats +package stats // import "github.com/docker/docker/daemon/stats" import ( "fmt" diff --git a/daemon/stats/collector_windows.go b/daemon/stats/collector_windows.go index 03109fd8fc..018e9065f1 100644 --- a/daemon/stats/collector_windows.go +++ b/daemon/stats/collector_windows.go @@ -1,4 +1,4 @@ -package stats +package stats // import "github.com/docker/docker/daemon/stats" // platformNewStatsCollector performs platform specific initialisation of the // Collector structure. This is a no-op on Windows. diff --git a/daemon/stats/types.go b/daemon/stats/types.go index e48783c9a9..cdd47d60a6 100644 --- a/daemon/stats/types.go +++ b/daemon/stats/types.go @@ -1,4 +1,4 @@ -package stats +package stats // import "github.com/docker/docker/daemon/stats" import ( "bufio" diff --git a/daemon/stats_collector.go b/daemon/stats_collector.go index 7daf26f9f7..0490b2ea15 100644 --- a/daemon/stats_collector.go +++ b/daemon/stats_collector.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "runtime" diff --git a/daemon/stats_unix.go b/daemon/stats_unix.go index 4831b84ab9..ee78ca688b 100644 --- a/daemon/stats_unix.go +++ b/daemon/stats_unix.go @@ -1,6 +1,6 @@ // +build !windows -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/docker/api/types" diff --git a/daemon/stats_windows.go b/daemon/stats_windows.go index f8e6f6f84a..0306332b48 100644 --- a/daemon/stats_windows.go +++ b/daemon/stats_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/docker/api/types" diff --git a/daemon/stop.go b/daemon/stop.go index d3b5297fb2..45f523848f 100644 --- a/daemon/stop.go +++ b/daemon/stop.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/top_unix.go b/daemon/top_unix.go index cbb993f658..a54fa37ffa 100644 --- a/daemon/top_unix.go +++ b/daemon/top_unix.go @@ -1,6 +1,6 @@ //+build !windows -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/top_unix_test.go b/daemon/top_unix_test.go index 4cc4a20700..41cb3e1cd9 100644 --- a/daemon/top_unix_test.go +++ b/daemon/top_unix_test.go @@ -1,6 +1,6 @@ //+build !windows -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "testing" diff --git a/daemon/top_windows.go b/daemon/top_windows.go index 40828ffb81..1b3f843962 100644 --- a/daemon/top_windows.go +++ b/daemon/top_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/trustkey.go b/daemon/trustkey.go index cb33146f9b..bf00b6a3a0 100644 --- a/daemon/trustkey.go +++ b/daemon/trustkey.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "encoding/json" diff --git a/daemon/trustkey_test.go b/daemon/trustkey_test.go index 2ade2aa80d..c49341d2a9 100644 --- a/daemon/trustkey_test.go +++ b/daemon/trustkey_test.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "io/ioutil" diff --git a/daemon/unpause.go b/daemon/unpause.go index b29a1f68da..9061d50a16 100644 --- a/daemon/unpause.go +++ b/daemon/unpause.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/update.go b/daemon/update.go index d2eb33a75e..0ebb139d3d 100644 --- a/daemon/update.go +++ b/daemon/update.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "context" diff --git a/daemon/update_linux.go b/daemon/update_linux.go index a55d39a56b..14bd91446a 100644 --- a/daemon/update_linux.go +++ b/daemon/update_linux.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "time" diff --git a/daemon/update_windows.go b/daemon/update_windows.go index e60f63d92d..fada3c1c0b 100644 --- a/daemon/update_windows.go +++ b/daemon/update_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/docker/api/types/container" diff --git a/daemon/volumes.go b/daemon/volumes.go index 2e75feebda..9a2e7d7f6e 100644 --- a/daemon/volumes.go +++ b/daemon/volumes.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "fmt" diff --git a/daemon/volumes_unit_test.go b/daemon/volumes_unit_test.go index 3f57f0ceee..aa51b4a822 100644 --- a/daemon/volumes_unit_test.go +++ b/daemon/volumes_unit_test.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "runtime" diff --git a/daemon/volumes_unix.go b/daemon/volumes_unix.go index bee1fb10b6..b752dbbb66 100644 --- a/daemon/volumes_unix.go +++ b/daemon/volumes_unix.go @@ -1,6 +1,6 @@ // +build !windows -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "encoding/json" diff --git a/daemon/volumes_unix_test.go b/daemon/volumes_unix_test.go index 3a81eeeb7c..f80ea29fb3 100644 --- a/daemon/volumes_unix_test.go +++ b/daemon/volumes_unix_test.go @@ -1,6 +1,6 @@ // +build !windows -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "encoding/json" diff --git a/daemon/volumes_windows.go b/daemon/volumes_windows.go index bfb5133d3d..886679a211 100644 --- a/daemon/volumes_windows.go +++ b/daemon/volumes_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "sort" diff --git a/daemon/wait.go b/daemon/wait.go index 76c16b9efc..bd4a9f0eb4 100644 --- a/daemon/wait.go +++ b/daemon/wait.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" import ( "github.com/docker/docker/container" diff --git a/daemon/workdir.go b/daemon/workdir.go index 6360f24138..90bba79b57 100644 --- a/daemon/workdir.go +++ b/daemon/workdir.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/daemon" // ContainerCreateWorkdir creates the working directory. This solves the // issue arising from https://github.com/docker/docker/issues/27545, diff --git a/distribution/config.go b/distribution/config.go index f42c9670ff..efd0d3fe7c 100644 --- a/distribution/config.go +++ b/distribution/config.go @@ -1,4 +1,4 @@ -package distribution +package distribution // import "github.com/docker/docker/distribution" import ( "encoding/json" diff --git a/distribution/errors.go b/distribution/errors.go index 49e8e5c0c1..e2913d45d6 100644 --- a/distribution/errors.go +++ b/distribution/errors.go @@ -1,4 +1,4 @@ -package distribution +package distribution // import "github.com/docker/docker/distribution" import ( "fmt" diff --git a/distribution/errors_test.go b/distribution/errors_test.go index aa9ef4f424..95c40e8a04 100644 --- a/distribution/errors_test.go +++ b/distribution/errors_test.go @@ -1,4 +1,4 @@ -package distribution +package distribution // import "github.com/docker/docker/distribution" import ( "errors" diff --git a/distribution/metadata/metadata.go b/distribution/metadata/metadata.go index 05ba4f817d..4ae8223bd0 100644 --- a/distribution/metadata/metadata.go +++ b/distribution/metadata/metadata.go @@ -1,4 +1,4 @@ -package metadata +package metadata // import "github.com/docker/docker/distribution/metadata" import ( "io/ioutil" diff --git a/distribution/metadata/v1_id_service.go b/distribution/metadata/v1_id_service.go index f262d4dc34..5575c59b0e 100644 --- a/distribution/metadata/v1_id_service.go +++ b/distribution/metadata/v1_id_service.go @@ -1,4 +1,4 @@ -package metadata +package metadata // import "github.com/docker/docker/distribution/metadata" import ( "github.com/docker/docker/image/v1" diff --git a/distribution/metadata/v1_id_service_test.go b/distribution/metadata/v1_id_service_test.go index 337278613e..8a3647b3b3 100644 --- a/distribution/metadata/v1_id_service_test.go +++ b/distribution/metadata/v1_id_service_test.go @@ -1,4 +1,4 @@ -package metadata +package metadata // import "github.com/docker/docker/distribution/metadata" import ( "io/ioutil" diff --git a/distribution/metadata/v2_metadata_service.go b/distribution/metadata/v2_metadata_service.go index af599be041..fe33498554 100644 --- a/distribution/metadata/v2_metadata_service.go +++ b/distribution/metadata/v2_metadata_service.go @@ -1,4 +1,4 @@ -package metadata +package metadata // import "github.com/docker/docker/distribution/metadata" import ( "crypto/hmac" diff --git a/distribution/metadata/v2_metadata_service_test.go b/distribution/metadata/v2_metadata_service_test.go index 8e3e4614c0..cf24e0d85b 100644 --- a/distribution/metadata/v2_metadata_service_test.go +++ b/distribution/metadata/v2_metadata_service_test.go @@ -1,4 +1,4 @@ -package metadata +package metadata // import "github.com/docker/docker/distribution/metadata" import ( "encoding/hex" diff --git a/distribution/pull.go b/distribution/pull.go index 008ccfb5e8..401d8f1471 100644 --- a/distribution/pull.go +++ b/distribution/pull.go @@ -1,4 +1,4 @@ -package distribution +package distribution // import "github.com/docker/docker/distribution" import ( "fmt" diff --git a/distribution/pull_v1.go b/distribution/pull_v1.go index 17e9a7cce2..e0d4a6e2ff 100644 --- a/distribution/pull_v1.go +++ b/distribution/pull_v1.go @@ -1,4 +1,4 @@ -package distribution +package distribution // import "github.com/docker/docker/distribution" import ( "errors" diff --git a/distribution/pull_v2.go b/distribution/pull_v2.go index 0b3a3b0cd8..2f1dac9a3c 100644 --- a/distribution/pull_v2.go +++ b/distribution/pull_v2.go @@ -1,4 +1,4 @@ -package distribution +package distribution // import "github.com/docker/docker/distribution" import ( "encoding/json" diff --git a/distribution/pull_v2_test.go b/distribution/pull_v2_test.go index 7355fb96e6..28cbb3e9d3 100644 --- a/distribution/pull_v2_test.go +++ b/distribution/pull_v2_test.go @@ -1,4 +1,4 @@ -package distribution +package distribution // import "github.com/docker/docker/distribution" import ( "encoding/json" diff --git a/distribution/pull_v2_unix.go b/distribution/pull_v2_unix.go index 666ccc89cc..9ddf0ac6e5 100644 --- a/distribution/pull_v2_unix.go +++ b/distribution/pull_v2_unix.go @@ -1,6 +1,6 @@ // +build !windows -package distribution +package distribution // import "github.com/docker/docker/distribution" import ( "runtime" diff --git a/distribution/pull_v2_windows.go b/distribution/pull_v2_windows.go index 08ff4371cb..6102dc5b09 100644 --- a/distribution/pull_v2_windows.go +++ b/distribution/pull_v2_windows.go @@ -1,4 +1,4 @@ -package distribution +package distribution // import "github.com/docker/docker/distribution" import ( "fmt" diff --git a/distribution/push.go b/distribution/push.go index 869a53ee63..2021970116 100644 --- a/distribution/push.go +++ b/distribution/push.go @@ -1,4 +1,4 @@ -package distribution +package distribution // import "github.com/docker/docker/distribution" import ( "bufio" diff --git a/distribution/push_v1.go b/distribution/push_v1.go index 6dbc110110..3578c060e0 100644 --- a/distribution/push_v1.go +++ b/distribution/push_v1.go @@ -1,4 +1,4 @@ -package distribution +package distribution // import "github.com/docker/docker/distribution" import ( "fmt" diff --git a/distribution/push_v2.go b/distribution/push_v2.go index 90b3b60300..ca066afc71 100644 --- a/distribution/push_v2.go +++ b/distribution/push_v2.go @@ -1,4 +1,4 @@ -package distribution +package distribution // import "github.com/docker/docker/distribution" import ( "errors" diff --git a/distribution/push_v2_test.go b/distribution/push_v2_test.go index 99f5acb0c2..ac68470b64 100644 --- a/distribution/push_v2_test.go +++ b/distribution/push_v2_test.go @@ -1,4 +1,4 @@ -package distribution +package distribution // import "github.com/docker/docker/distribution" import ( "net/http" diff --git a/distribution/registry.go b/distribution/registry.go index 03d05240e6..7f0987a4bb 100644 --- a/distribution/registry.go +++ b/distribution/registry.go @@ -1,4 +1,4 @@ -package distribution +package distribution // import "github.com/docker/docker/distribution" import ( "fmt" diff --git a/distribution/registry_unit_test.go b/distribution/registry_unit_test.go index db1814958e..42d22fd4fb 100644 --- a/distribution/registry_unit_test.go +++ b/distribution/registry_unit_test.go @@ -1,4 +1,4 @@ -package distribution +package distribution // import "github.com/docker/docker/distribution" import ( "net/http" diff --git a/distribution/utils/progress.go b/distribution/utils/progress.go index 96380fdb24..73ee2be61e 100644 --- a/distribution/utils/progress.go +++ b/distribution/utils/progress.go @@ -1,4 +1,4 @@ -package utils +package utils // import "github.com/docker/docker/distribution/utils" import ( "io" diff --git a/distribution/xfer/download.go b/distribution/xfer/download.go index 1ccb91a14f..90258f46ba 100644 --- a/distribution/xfer/download.go +++ b/distribution/xfer/download.go @@ -1,4 +1,4 @@ -package xfer +package xfer // import "github.com/docker/docker/distribution/xfer" import ( "errors" diff --git a/distribution/xfer/download_test.go b/distribution/xfer/download_test.go index 0d86b658c1..d5d8ffb01c 100644 --- a/distribution/xfer/download_test.go +++ b/distribution/xfer/download_test.go @@ -1,4 +1,4 @@ -package xfer +package xfer // import "github.com/docker/docker/distribution/xfer" import ( "bytes" diff --git a/distribution/xfer/transfer.go b/distribution/xfer/transfer.go index b86c503a08..2c8c16d66f 100644 --- a/distribution/xfer/transfer.go +++ b/distribution/xfer/transfer.go @@ -1,4 +1,4 @@ -package xfer +package xfer // import "github.com/docker/docker/distribution/xfer" import ( "runtime" diff --git a/distribution/xfer/transfer_test.go b/distribution/xfer/transfer_test.go index 6c50ce3524..a86e27959e 100644 --- a/distribution/xfer/transfer_test.go +++ b/distribution/xfer/transfer_test.go @@ -1,4 +1,4 @@ -package xfer +package xfer // import "github.com/docker/docker/distribution/xfer" import ( "sync/atomic" diff --git a/distribution/xfer/upload.go b/distribution/xfer/upload.go index 3310a3c684..b60adf3220 100644 --- a/distribution/xfer/upload.go +++ b/distribution/xfer/upload.go @@ -1,4 +1,4 @@ -package xfer +package xfer // import "github.com/docker/docker/distribution/xfer" import ( "errors" diff --git a/distribution/xfer/upload_test.go b/distribution/xfer/upload_test.go index 066019f263..43790e4b92 100644 --- a/distribution/xfer/upload_test.go +++ b/distribution/xfer/upload_test.go @@ -1,4 +1,4 @@ -package xfer +package xfer // import "github.com/docker/docker/distribution/xfer" import ( "errors" diff --git a/dockerversion/useragent.go b/dockerversion/useragent.go index c02d0fda1a..bb531c671f 100644 --- a/dockerversion/useragent.go +++ b/dockerversion/useragent.go @@ -1,4 +1,4 @@ -package dockerversion +package dockerversion // import "github.com/docker/docker/dockerversion" import ( "fmt" diff --git a/dockerversion/version_lib.go b/dockerversion/version_lib.go index 72f48939d6..1489be0a25 100644 --- a/dockerversion/version_lib.go +++ b/dockerversion/version_lib.go @@ -1,7 +1,7 @@ // +build !autogen // Package dockerversion is auto-generated at build-time -package dockerversion +package dockerversion // import "github.com/docker/docker/dockerversion" // Default build-time variable for library-import. // This file is overridden on build with build-time informations. diff --git a/errdefs/defs.go b/errdefs/defs.go index 29c3619600..615ff3c798 100644 --- a/errdefs/defs.go +++ b/errdefs/defs.go @@ -1,4 +1,4 @@ -package errdefs +package errdefs // import "github.com/docker/docker/errdefs" // ErrNotFound signals that the requested object doesn't exist type ErrNotFound interface { diff --git a/errdefs/doc.go b/errdefs/doc.go index 065346aa29..c211f174fc 100644 --- a/errdefs/doc.go +++ b/errdefs/doc.go @@ -5,4 +5,4 @@ // To check if a particular error implements one of these interfaces, there are helper // functions provided (e.g. `Is`) which can be used rather than asserting the interfaces directly. // If you must assert on these interfaces, be sure to check the causal chain (`err.Cause()`). -package errdefs +package errdefs // import "github.com/docker/docker/errdefs" diff --git a/errdefs/helpers.go b/errdefs/helpers.go index 5afa944461..6169c2bc62 100644 --- a/errdefs/helpers.go +++ b/errdefs/helpers.go @@ -1,4 +1,4 @@ -package errdefs +package errdefs // import "github.com/docker/docker/errdefs" import "context" diff --git a/errdefs/helpers_test.go b/errdefs/helpers_test.go index 984f0a77a9..42994e3656 100644 --- a/errdefs/helpers_test.go +++ b/errdefs/helpers_test.go @@ -1,4 +1,4 @@ -package errdefs +package errdefs // import "github.com/docker/docker/errdefs" import ( "errors" diff --git a/errdefs/is.go b/errdefs/is.go index 286ffd694a..36ea6667fd 100644 --- a/errdefs/is.go +++ b/errdefs/is.go @@ -1,4 +1,4 @@ -package errdefs +package errdefs // import "github.com/docker/docker/errdefs" type causer interface { Cause() error diff --git a/image/cache/cache.go b/image/cache/cache.go index e074bebccd..6d3f4c57b5 100644 --- a/image/cache/cache.go +++ b/image/cache/cache.go @@ -1,4 +1,4 @@ -package cache +package cache // import "github.com/docker/docker/image/cache" import ( "encoding/json" diff --git a/image/cache/compare.go b/image/cache/compare.go index 9237932463..e31e9c8bdf 100644 --- a/image/cache/compare.go +++ b/image/cache/compare.go @@ -1,4 +1,4 @@ -package cache +package cache // import "github.com/docker/docker/image/cache" import ( "github.com/docker/docker/api/types/container" diff --git a/image/cache/compare_test.go b/image/cache/compare_test.go index 10e464b438..939e99f050 100644 --- a/image/cache/compare_test.go +++ b/image/cache/compare_test.go @@ -1,4 +1,4 @@ -package cache +package cache // import "github.com/docker/docker/image/cache" import ( "testing" diff --git a/image/fs.go b/image/fs.go index 68e052926d..7080c8c015 100644 --- a/image/fs.go +++ b/image/fs.go @@ -1,4 +1,4 @@ -package image +package image // import "github.com/docker/docker/image" import ( "fmt" diff --git a/image/fs_test.go b/image/fs_test.go index 2672524039..6a634377e7 100644 --- a/image/fs_test.go +++ b/image/fs_test.go @@ -1,4 +1,4 @@ -package image +package image // import "github.com/docker/docker/image" import ( "crypto/rand" diff --git a/image/image.go b/image/image.go index 69e4abdd07..683c3fedd0 100644 --- a/image/image.go +++ b/image/image.go @@ -1,4 +1,4 @@ -package image +package image // import "github.com/docker/docker/image" import ( "encoding/json" diff --git a/image/image_test.go b/image/image_test.go index ba42db78bf..429f202978 100644 --- a/image/image_test.go +++ b/image/image_test.go @@ -1,4 +1,4 @@ -package image +package image // import "github.com/docker/docker/image" import ( "encoding/json" diff --git a/image/rootfs.go b/image/rootfs.go index fb5f674c84..84843e10c6 100644 --- a/image/rootfs.go +++ b/image/rootfs.go @@ -1,4 +1,4 @@ -package image +package image // import "github.com/docker/docker/image" import ( "runtime" diff --git a/image/store.go b/image/store.go index 60f499c9fe..c79fe39349 100644 --- a/image/store.go +++ b/image/store.go @@ -1,4 +1,4 @@ -package image +package image // import "github.com/docker/docker/image" import ( "encoding/json" diff --git a/image/store_test.go b/image/store_test.go index 4fe3660478..ff40f7ea22 100644 --- a/image/store_test.go +++ b/image/store_test.go @@ -1,4 +1,4 @@ -package image +package image // import "github.com/docker/docker/image" import ( "runtime" diff --git a/image/tarexport/load.go b/image/tarexport/load.go index a0cfc64203..4d120068b6 100644 --- a/image/tarexport/load.go +++ b/image/tarexport/load.go @@ -1,4 +1,4 @@ -package tarexport +package tarexport // import "github.com/docker/docker/image/tarexport" import ( "encoding/json" diff --git a/image/tarexport/save.go b/image/tarexport/save.go index 15f12304ad..1f32fadb5b 100644 --- a/image/tarexport/save.go +++ b/image/tarexport/save.go @@ -1,4 +1,4 @@ -package tarexport +package tarexport // import "github.com/docker/docker/image/tarexport" import ( "encoding/json" diff --git a/image/tarexport/tarexport.go b/image/tarexport/tarexport.go index f12259dd10..beff668cd8 100644 --- a/image/tarexport/tarexport.go +++ b/image/tarexport/tarexport.go @@ -1,4 +1,4 @@ -package tarexport +package tarexport // import "github.com/docker/docker/image/tarexport" import ( "github.com/docker/distribution" diff --git a/image/v1/imagev1.go b/image/v1/imagev1.go index 697d59e335..c341ceaa77 100644 --- a/image/v1/imagev1.go +++ b/image/v1/imagev1.go @@ -1,4 +1,4 @@ -package v1 +package v1 // import "github.com/docker/docker/image/v1" import ( "encoding/json" diff --git a/image/v1/imagev1_test.go b/image/v1/imagev1_test.go index 936c55e4c5..45ae783d18 100644 --- a/image/v1/imagev1_test.go +++ b/image/v1/imagev1_test.go @@ -1,4 +1,4 @@ -package v1 +package v1 // import "github.com/docker/docker/image/v1" import ( "encoding/json" diff --git a/integration-cli/checker/checker.go b/integration-cli/checker/checker.go index d1b703a599..d7fdc412ba 100644 --- a/integration-cli/checker/checker.go +++ b/integration-cli/checker/checker.go @@ -1,5 +1,5 @@ // Package checker provides Docker specific implementations of the go-check.Checker interface. -package checker +package checker // import "github.com/docker/docker/integration-cli/checker" import ( "github.com/go-check/check" diff --git a/integration-cli/cli/build/build.go b/integration-cli/cli/build/build.go index da55df35c6..dd36ecc212 100644 --- a/integration-cli/cli/build/build.go +++ b/integration-cli/cli/build/build.go @@ -1,4 +1,4 @@ -package build +package build // import "github.com/docker/docker/integration-cli/cli/build" import ( "io" diff --git a/integration-cli/cli/build/fakecontext/context.go b/integration-cli/cli/build/fakecontext/context.go index 8ecf4e3c63..b945a8ff17 100644 --- a/integration-cli/cli/build/fakecontext/context.go +++ b/integration-cli/cli/build/fakecontext/context.go @@ -1,4 +1,4 @@ -package fakecontext +package fakecontext // import "github.com/docker/docker/integration-cli/cli/build/fakecontext" import ( "bytes" diff --git a/integration-cli/cli/build/fakegit/fakegit.go b/integration-cli/cli/build/fakegit/fakegit.go index ad028dc723..eb175365a5 100644 --- a/integration-cli/cli/build/fakegit/fakegit.go +++ b/integration-cli/cli/build/fakegit/fakegit.go @@ -1,4 +1,4 @@ -package fakegit +package fakegit // import "github.com/docker/docker/integration-cli/cli/build/fakegit" import ( "fmt" diff --git a/integration-cli/cli/build/fakestorage/fixtures.go b/integration-cli/cli/build/fakestorage/fixtures.go index 2eb72847f4..ad10a5ed8a 100644 --- a/integration-cli/cli/build/fakestorage/fixtures.go +++ b/integration-cli/cli/build/fakestorage/fixtures.go @@ -1,4 +1,4 @@ -package fakestorage +package fakestorage // import "github.com/docker/docker/integration-cli/cli/build/fakestorage" import ( "io/ioutil" diff --git a/integration-cli/cli/build/fakestorage/storage.go b/integration-cli/cli/build/fakestorage/storage.go index eb0363628d..c8c837ed2a 100644 --- a/integration-cli/cli/build/fakestorage/storage.go +++ b/integration-cli/cli/build/fakestorage/storage.go @@ -1,4 +1,4 @@ -package fakestorage +package fakestorage // import "github.com/docker/docker/integration-cli/cli/build/fakestorage" import ( "fmt" diff --git a/integration-cli/cli/cli.go b/integration-cli/cli/cli.go index 813c3ad437..eb03b2dd81 100644 --- a/integration-cli/cli/cli.go +++ b/integration-cli/cli/cli.go @@ -1,4 +1,4 @@ -package cli +package cli // import "github.com/docker/docker/integration-cli/cli" import ( "fmt" diff --git a/integration-cli/daemon/daemon.go b/integration-cli/daemon/daemon.go index 62150a1d28..149d775fea 100644 --- a/integration-cli/daemon/daemon.go +++ b/integration-cli/daemon/daemon.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/integration-cli/daemon" import ( "bytes" diff --git a/integration-cli/daemon/daemon_swarm.go b/integration-cli/daemon/daemon_swarm.go index bd1ada0b42..4be0acc9e9 100644 --- a/integration-cli/daemon/daemon_swarm.go +++ b/integration-cli/daemon/daemon_swarm.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/integration-cli/daemon" import ( "encoding/json" diff --git a/integration-cli/daemon/daemon_unix.go b/integration-cli/daemon/daemon_unix.go index 77eda2de22..97548c3103 100644 --- a/integration-cli/daemon/daemon_unix.go +++ b/integration-cli/daemon/daemon_unix.go @@ -1,6 +1,6 @@ // +build !windows -package daemon +package daemon // import "github.com/docker/docker/integration-cli/daemon" import ( "os" diff --git a/integration-cli/daemon/daemon_windows.go b/integration-cli/daemon/daemon_windows.go index e445aa68c7..63f6b03239 100644 --- a/integration-cli/daemon/daemon_windows.go +++ b/integration-cli/daemon/daemon_windows.go @@ -1,4 +1,4 @@ -package daemon +package daemon // import "github.com/docker/docker/integration-cli/daemon" import ( "fmt" diff --git a/integration-cli/environment/environment.go b/integration-cli/environment/environment.go index 7fd6743c71..2d7702f14c 100644 --- a/integration-cli/environment/environment.go +++ b/integration-cli/environment/environment.go @@ -1,4 +1,4 @@ -package environment +package environment // import "github.com/docker/docker/integration-cli/environment" import ( "os" diff --git a/integration-cli/fixtures/load/frozen.go b/integration-cli/fixtures/load/frozen.go index 7b91fecd93..5701a216a2 100644 --- a/integration-cli/fixtures/load/frozen.go +++ b/integration-cli/fixtures/load/frozen.go @@ -1,4 +1,4 @@ -package load +package load // import "github.com/docker/docker/integration-cli/fixtures/load" import ( "bufio" diff --git a/integration-cli/fixtures/plugin/plugin.go b/integration-cli/fixtures/plugin/plugin.go index 0b13134563..52fb6c3425 100644 --- a/integration-cli/fixtures/plugin/plugin.go +++ b/integration-cli/fixtures/plugin/plugin.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/integration-cli/fixtures/plugin" import ( "encoding/json" diff --git a/integration-cli/registry/registry.go b/integration-cli/registry/registry.go index a8ac682dbb..b09887584a 100644 --- a/integration-cli/registry/registry.go +++ b/integration-cli/registry/registry.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/integration-cli/registry" import ( "fmt" diff --git a/integration-cli/registry/registry_mock.go b/integration-cli/registry/registry_mock.go index e70967fdd6..c2b4897aad 100644 --- a/integration-cli/registry/registry_mock.go +++ b/integration-cli/registry/registry_mock.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/integration-cli/registry" import ( "net/http" diff --git a/integration-cli/registry/requirement.go b/integration-cli/registry/requirement.go index cde48da47c..8cd428cc26 100644 --- a/integration-cli/registry/requirement.go +++ b/integration-cli/registry/requirement.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/integration-cli/registry" import "os/exec" diff --git a/integration-cli/request/npipe.go b/integration-cli/request/npipe.go index e6ab03945e..89f98cc68a 100644 --- a/integration-cli/request/npipe.go +++ b/integration-cli/request/npipe.go @@ -1,6 +1,6 @@ // +build !windows -package request +package request // import "github.com/docker/docker/integration-cli/request" import ( "net" diff --git a/integration-cli/request/npipe_windows.go b/integration-cli/request/npipe_windows.go index a268aac922..54b7cefa2b 100644 --- a/integration-cli/request/npipe_windows.go +++ b/integration-cli/request/npipe_windows.go @@ -1,4 +1,4 @@ -package request +package request // import "github.com/docker/docker/integration-cli/request" import ( "net" diff --git a/integration-cli/request/request.go b/integration-cli/request/request.go index f22b08d768..a937708665 100644 --- a/integration-cli/request/request.go +++ b/integration-cli/request/request.go @@ -1,4 +1,4 @@ -package request +package request // import "github.com/docker/docker/integration-cli/request" import ( "bufio" diff --git a/integration-cli/requirement/requirement.go b/integration-cli/requirement/requirement.go index 9486c32520..45a1bcabfd 100644 --- a/integration-cli/requirement/requirement.go +++ b/integration-cli/requirement/requirement.go @@ -1,4 +1,4 @@ -package requirement +package requirement // import "github.com/docker/docker/integration-cli/requirement" import ( "fmt" diff --git a/integration/build/build_test.go b/integration/build/build_test.go index 1271daea9b..6b936ba774 100644 --- a/integration/build/build_test.go +++ b/integration/build/build_test.go @@ -1,4 +1,4 @@ -package build +package build // import "github.com/docker/docker/integration/build" import ( "archive/tar" diff --git a/integration/build/main_test.go b/integration/build/main_test.go index 113766a73a..fef3909fd5 100644 --- a/integration/build/main_test.go +++ b/integration/build/main_test.go @@ -1,4 +1,4 @@ -package build +package build // import "github.com/docker/docker/integration/build" import ( "fmt" diff --git a/integration/container/create_test.go b/integration/container/create_test.go index 6c8a084e5b..a3028f19ad 100644 --- a/integration/container/create_test.go +++ b/integration/container/create_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/integration/container" import ( "context" diff --git a/integration/container/exec_test.go b/integration/container/exec_test.go index 22d7ec01cc..589f0aba86 100644 --- a/integration/container/exec_test.go +++ b/integration/container/exec_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/integration/container" import ( "context" diff --git a/integration/container/health_test.go b/integration/container/health_test.go index 8ed86a86e6..6185174e5d 100644 --- a/integration/container/health_test.go +++ b/integration/container/health_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/integration/container" import ( "context" diff --git a/integration/container/links_linux_test.go b/integration/container/links_linux_test.go index 4a56ee853b..4959689ce5 100644 --- a/integration/container/links_linux_test.go +++ b/integration/container/links_linux_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/integration/container" import ( "bytes" diff --git a/integration/container/main_test.go b/integration/container/main_test.go index 37f6564759..bc482ce92d 100644 --- a/integration/container/main_test.go +++ b/integration/container/main_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/integration/container" import ( "context" diff --git a/integration/container/mounts_linux_test.go b/integration/container/mounts_linux_test.go index 8c13258c30..888ce5ff0c 100644 --- a/integration/container/mounts_linux_test.go +++ b/integration/container/mounts_linux_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/integration/container" import ( "bytes" diff --git a/integration/container/ps_test.go b/integration/container/ps_test.go index b7eaa72f44..24113e5001 100644 --- a/integration/container/ps_test.go +++ b/integration/container/ps_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/integration/container" import ( "context" diff --git a/integration/container/rename_test.go b/integration/container/rename_test.go index cf3675734a..624e24e0b7 100644 --- a/integration/container/rename_test.go +++ b/integration/container/rename_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/integration/container" import ( "context" diff --git a/integration/container/resize_test.go b/integration/container/resize_test.go index c1469d07db..b1422f88f7 100644 --- a/integration/container/resize_test.go +++ b/integration/container/resize_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/integration/container" import ( "context" diff --git a/integration/container/restart_test.go b/integration/container/restart_test.go index cf014b5916..accaf2cd80 100644 --- a/integration/container/restart_test.go +++ b/integration/container/restart_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/integration/container" import ( "context" diff --git a/integration/container/stats_test.go b/integration/container/stats_test.go index bacbaf0c3d..f06407ec2d 100644 --- a/integration/container/stats_test.go +++ b/integration/container/stats_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/integration/container" import ( "context" diff --git a/integration/container/stop_test.go b/integration/container/stop_test.go index dadf768bb7..a66e70f071 100644 --- a/integration/container/stop_test.go +++ b/integration/container/stop_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/integration/container" import ( "context" diff --git a/integration/container/update_linux_test.go b/integration/container/update_linux_test.go index 53ed10692c..d1238e724d 100644 --- a/integration/container/update_linux_test.go +++ b/integration/container/update_linux_test.go @@ -1,4 +1,4 @@ -package container +package container // import "github.com/docker/docker/integration/container" import ( "bytes" diff --git a/integration/doc.go b/integration/doc.go index 2fdf62eef7..ee4bf50430 100644 --- a/integration/doc.go +++ b/integration/doc.go @@ -1,3 +1,3 @@ // Package integration provides integrations tests for Moby (API). // These tests require a daemon (dockerd for now) to run. -package integration +package integration // import "github.com/docker/docker/integration" diff --git a/integration/image/commit_test.go b/integration/image/commit_test.go index 13edbe1175..b5dd38a7e1 100644 --- a/integration/image/commit_test.go +++ b/integration/image/commit_test.go @@ -1,4 +1,4 @@ -package image +package image // import "github.com/docker/docker/integration/image" import ( "context" diff --git a/integration/image/import_test.go b/integration/image/import_test.go index 2bb7ffbdc0..4521a8a14e 100644 --- a/integration/image/import_test.go +++ b/integration/image/import_test.go @@ -1,4 +1,4 @@ -package image +package image // import "github.com/docker/docker/integration/image" import ( "archive/tar" diff --git a/integration/image/main_test.go b/integration/image/main_test.go index 5ef46aaf57..1b4270dfc6 100644 --- a/integration/image/main_test.go +++ b/integration/image/main_test.go @@ -1,4 +1,4 @@ -package image +package image // import "github.com/docker/docker/integration/image" import ( "fmt" diff --git a/integration/network/delete_test.go b/integration/network/delete_test.go index 0a3b219bf2..25a42c9bd9 100644 --- a/integration/network/delete_test.go +++ b/integration/network/delete_test.go @@ -1,4 +1,4 @@ -package network +package network // import "github.com/docker/docker/integration/network" import ( "context" diff --git a/integration/network/inspect_test.go b/integration/network/inspect_test.go index 8f8c846a9c..36b65d1d11 100644 --- a/integration/network/inspect_test.go +++ b/integration/network/inspect_test.go @@ -1,4 +1,4 @@ -package network +package network // import "github.com/docker/docker/integration/network" import ( "fmt" diff --git a/integration/network/main_test.go b/integration/network/main_test.go index 9729c3e927..36ed19ca67 100644 --- a/integration/network/main_test.go +++ b/integration/network/main_test.go @@ -1,4 +1,4 @@ -package network +package network // import "github.com/docker/docker/integration/network" import ( "fmt" diff --git a/integration/plugin/authz/authz_plugin_test.go b/integration/plugin/authz/authz_plugin_test.go index 0f46d8f85a..0d78d4c982 100644 --- a/integration/plugin/authz/authz_plugin_test.go +++ b/integration/plugin/authz/authz_plugin_test.go @@ -1,6 +1,6 @@ // +build !windows -package authz +package authz // import "github.com/docker/docker/integration/plugin/authz" import ( "context" diff --git a/integration/plugin/authz/authz_plugin_v2_test.go b/integration/plugin/authz/authz_plugin_v2_test.go index d6c049813c..6b7a9df2ce 100644 --- a/integration/plugin/authz/authz_plugin_v2_test.go +++ b/integration/plugin/authz/authz_plugin_v2_test.go @@ -1,6 +1,6 @@ // +build !windows -package authz +package authz // import "github.com/docker/docker/integration/plugin/authz" import ( "context" diff --git a/integration/plugin/authz/main_test.go b/integration/plugin/authz/main_test.go index 0ecf66cde6..ea72a03f16 100644 --- a/integration/plugin/authz/main_test.go +++ b/integration/plugin/authz/main_test.go @@ -1,6 +1,6 @@ // +build !windows -package authz +package authz // import "github.com/docker/docker/integration/plugin/authz" import ( "encoding/json" diff --git a/integration/plugin/pkg_test.go b/integration/plugin/pkg_test.go index b0736c3a05..b56d3e2bae 100644 --- a/integration/plugin/pkg_test.go +++ b/integration/plugin/pkg_test.go @@ -1 +1 @@ -package plugin +package plugin // import "github.com/docker/docker/integration/plugin" diff --git a/integration/service/create_test.go b/integration/service/create_test.go index fb8ea32b43..abe7514f28 100644 --- a/integration/service/create_test.go +++ b/integration/service/create_test.go @@ -1,4 +1,4 @@ -package service +package service // import "github.com/docker/docker/integration/service" import ( "io/ioutil" diff --git a/integration/service/inspect_test.go b/integration/service/inspect_test.go index 5129aa2923..1ff251d7d7 100644 --- a/integration/service/inspect_test.go +++ b/integration/service/inspect_test.go @@ -1,4 +1,4 @@ -package service +package service // import "github.com/docker/docker/integration/service" import ( "fmt" diff --git a/integration/service/main_test.go b/integration/service/main_test.go index 6dfb6b986c..d887403e51 100644 --- a/integration/service/main_test.go +++ b/integration/service/main_test.go @@ -1,4 +1,4 @@ -package service +package service // import "github.com/docker/docker/integration/service" import ( "fmt" diff --git a/integration/service/network_test.go b/integration/service/network_test.go index 016bd2ce4b..142630ef73 100644 --- a/integration/service/network_test.go +++ b/integration/service/network_test.go @@ -1,4 +1,4 @@ -package service +package service // import "github.com/docker/docker/integration/service" import ( "context" diff --git a/integration/system/event_test.go b/integration/system/event_test.go index ef7eb1ff5b..f9364cd232 100644 --- a/integration/system/event_test.go +++ b/integration/system/event_test.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/integration/system" import ( "context" diff --git a/integration/system/info_linux_test.go b/integration/system/info_linux_test.go index bea14eaddd..a448b44cff 100644 --- a/integration/system/info_linux_test.go +++ b/integration/system/info_linux_test.go @@ -1,6 +1,6 @@ // +build !windows -package system +package system // import "github.com/docker/docker/integration/system" import ( "testing" diff --git a/integration/system/login_test.go b/integration/system/login_test.go index a3e296c3ac..295f37cee1 100644 --- a/integration/system/login_test.go +++ b/integration/system/login_test.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/integration/system" import ( "testing" diff --git a/integration/system/main_test.go b/integration/system/main_test.go index aa332c91fb..f19a3157aa 100644 --- a/integration/system/main_test.go +++ b/integration/system/main_test.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/integration/system" import ( "fmt" diff --git a/integration/system/version_test.go b/integration/system/version_test.go index c1231fd383..605ab503da 100644 --- a/integration/system/version_test.go +++ b/integration/system/version_test.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/integration/system" import ( "testing" diff --git a/integration/util/request/client.go b/integration/util/request/client.go index b35306ce73..b4a15a8c99 100644 --- a/integration/util/request/client.go +++ b/integration/util/request/client.go @@ -1,4 +1,4 @@ -package request +package request // import "github.com/docker/docker/integration/util/request" import ( "net" diff --git a/integration/util/requirement/requirement.go b/integration/util/requirement/requirement.go index 936b2ddded..07035dec87 100644 --- a/integration/util/requirement/requirement.go +++ b/integration/util/requirement/requirement.go @@ -1,4 +1,4 @@ -package requirement +package requirement // import "github.com/docker/docker/integration/util/requirement" import ( "net/http" diff --git a/internal/test/environment/clean.go b/internal/test/environment/clean.go index e9548d1cde..065b46bee8 100644 --- a/internal/test/environment/clean.go +++ b/internal/test/environment/clean.go @@ -1,4 +1,4 @@ -package environment +package environment // import "github.com/docker/docker/internal/test/environment" import ( "regexp" diff --git a/internal/test/environment/environment.go b/internal/test/environment/environment.go index fb927271f3..5ff4139e5d 100644 --- a/internal/test/environment/environment.go +++ b/internal/test/environment/environment.go @@ -1,4 +1,4 @@ -package environment +package environment // import "github.com/docker/docker/internal/test/environment" import ( "fmt" diff --git a/internal/test/environment/protect.go b/internal/test/environment/protect.go index 7885f80fd8..9aa6fdd602 100644 --- a/internal/test/environment/protect.go +++ b/internal/test/environment/protect.go @@ -1,4 +1,4 @@ -package environment +package environment // import "github.com/docker/docker/internal/test/environment" import ( "context" diff --git a/internal/testutil/helpers.go b/internal/testutil/helpers.go index bb36322a80..77224a0071 100644 --- a/internal/testutil/helpers.go +++ b/internal/testutil/helpers.go @@ -1,4 +1,4 @@ -package testutil +package testutil // import "github.com/docker/docker/internal/testutil" import ( "io" diff --git a/internal/testutil/stringutils.go b/internal/testutil/stringutils.go index 76cf8d86a9..574aeb51f2 100644 --- a/internal/testutil/stringutils.go +++ b/internal/testutil/stringutils.go @@ -1,4 +1,4 @@ -package testutil +package testutil // import "github.com/docker/docker/internal/testutil" import "math/rand" diff --git a/internal/testutil/stringutils_test.go b/internal/testutil/stringutils_test.go index 2985a06553..a0f95755c7 100644 --- a/internal/testutil/stringutils_test.go +++ b/internal/testutil/stringutils_test.go @@ -1,4 +1,4 @@ -package testutil +package testutil // import "github.com/docker/docker/internal/testutil" import ( "testing" diff --git a/layer/empty.go b/layer/empty.go index 80f2c12439..c81c702140 100644 --- a/layer/empty.go +++ b/layer/empty.go @@ -1,4 +1,4 @@ -package layer +package layer // import "github.com/docker/docker/layer" import ( "archive/tar" diff --git a/layer/empty_test.go b/layer/empty_test.go index abafc23acc..ec9fbc1a3c 100644 --- a/layer/empty_test.go +++ b/layer/empty_test.go @@ -1,4 +1,4 @@ -package layer +package layer // import "github.com/docker/docker/layer" import ( "io" diff --git a/layer/filestore.go b/layer/filestore.go index d813555525..a7454b5e9f 100644 --- a/layer/filestore.go +++ b/layer/filestore.go @@ -1,4 +1,4 @@ -package layer +package layer // import "github.com/docker/docker/layer" import ( "compress/gzip" diff --git a/layer/filestore_test.go b/layer/filestore_test.go index 2126a20b8f..8e6dd27f94 100644 --- a/layer/filestore_test.go +++ b/layer/filestore_test.go @@ -1,4 +1,4 @@ -package layer +package layer // import "github.com/docker/docker/layer" import ( "fmt" diff --git a/layer/filestore_unix.go b/layer/filestore_unix.go index 898774bdca..68e7f90779 100644 --- a/layer/filestore_unix.go +++ b/layer/filestore_unix.go @@ -1,6 +1,6 @@ // +build !windows -package layer +package layer // import "github.com/docker/docker/layer" import "runtime" diff --git a/layer/filestore_windows.go b/layer/filestore_windows.go index 199b0b7a5b..cecad426c8 100644 --- a/layer/filestore_windows.go +++ b/layer/filestore_windows.go @@ -1,4 +1,4 @@ -package layer +package layer // import "github.com/docker/docker/layer" import ( "fmt" diff --git a/layer/layer.go b/layer/layer.go index 2603ac5921..48fa7cf3c4 100644 --- a/layer/layer.go +++ b/layer/layer.go @@ -7,7 +7,7 @@ // read-only and writable layers. The exported // tar data for a read-only layer should match // the tar used to create the layer. -package layer +package layer // import "github.com/docker/docker/layer" import ( "errors" diff --git a/layer/layer_store.go b/layer/layer_store.go index c6225386d0..ec8ecd6c17 100644 --- a/layer/layer_store.go +++ b/layer/layer_store.go @@ -1,4 +1,4 @@ -package layer +package layer // import "github.com/docker/docker/layer" import ( "errors" diff --git a/layer/layer_store_windows.go b/layer/layer_store_windows.go index 1276a912cc..eca1f6a83b 100644 --- a/layer/layer_store_windows.go +++ b/layer/layer_store_windows.go @@ -1,4 +1,4 @@ -package layer +package layer // import "github.com/docker/docker/layer" import ( "io" diff --git a/layer/layer_test.go b/layer/layer_test.go index edd9c9f4c2..0bf25bc72b 100644 --- a/layer/layer_test.go +++ b/layer/layer_test.go @@ -1,4 +1,4 @@ -package layer +package layer // import "github.com/docker/docker/layer" import ( "bytes" diff --git a/layer/layer_unix.go b/layer/layer_unix.go index d77e2fc66e..002c7ff838 100644 --- a/layer/layer_unix.go +++ b/layer/layer_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd darwin openbsd -package layer +package layer // import "github.com/docker/docker/layer" import "github.com/docker/docker/pkg/stringid" diff --git a/layer/layer_unix_test.go b/layer/layer_unix_test.go index c11f3becea..6830158131 100644 --- a/layer/layer_unix_test.go +++ b/layer/layer_unix_test.go @@ -1,6 +1,6 @@ // +build !windows -package layer +package layer // import "github.com/docker/docker/layer" import ( "testing" diff --git a/layer/layer_windows.go b/layer/layer_windows.go index c379c1b86e..25ef26afc1 100644 --- a/layer/layer_windows.go +++ b/layer/layer_windows.go @@ -1,4 +1,4 @@ -package layer +package layer // import "github.com/docker/docker/layer" import ( "errors" diff --git a/layer/migration.go b/layer/migration.go index 21b43b73ee..2668ea96bb 100644 --- a/layer/migration.go +++ b/layer/migration.go @@ -1,4 +1,4 @@ -package layer +package layer // import "github.com/docker/docker/layer" import ( "compress/gzip" diff --git a/layer/migration_test.go b/layer/migration_test.go index e2acd19c2c..2c6800f151 100644 --- a/layer/migration_test.go +++ b/layer/migration_test.go @@ -1,4 +1,4 @@ -package layer +package layer // import "github.com/docker/docker/layer" import ( "bytes" diff --git a/layer/mount_test.go b/layer/mount_test.go index 44d461f9b8..1cfc370eed 100644 --- a/layer/mount_test.go +++ b/layer/mount_test.go @@ -1,4 +1,4 @@ -package layer +package layer // import "github.com/docker/docker/layer" import ( "io/ioutil" diff --git a/layer/mounted_layer.go b/layer/mounted_layer.go index 47ef966987..d6858c662c 100644 --- a/layer/mounted_layer.go +++ b/layer/mounted_layer.go @@ -1,4 +1,4 @@ -package layer +package layer // import "github.com/docker/docker/layer" import ( "io" diff --git a/layer/ro_layer.go b/layer/ro_layer.go index baa742e6e9..e1f1b407c2 100644 --- a/layer/ro_layer.go +++ b/layer/ro_layer.go @@ -1,4 +1,4 @@ -package layer +package layer // import "github.com/docker/docker/layer" import ( "fmt" diff --git a/layer/ro_layer_windows.go b/layer/ro_layer_windows.go index 32bd7182a3..a4f0c8088e 100644 --- a/layer/ro_layer_windows.go +++ b/layer/ro_layer_windows.go @@ -1,4 +1,4 @@ -package layer +package layer // import "github.com/docker/docker/layer" import "github.com/docker/distribution" diff --git a/libcontainerd/client_daemon.go b/libcontainerd/client_daemon.go index 9e66d224c6..67895eb751 100644 --- a/libcontainerd/client_daemon.go +++ b/libcontainerd/client_daemon.go @@ -1,6 +1,6 @@ // +build !windows -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import ( "context" diff --git a/libcontainerd/client_daemon_linux.go b/libcontainerd/client_daemon_linux.go index d34420ac22..53349def38 100644 --- a/libcontainerd/client_daemon_linux.go +++ b/libcontainerd/client_daemon_linux.go @@ -1,4 +1,4 @@ -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import ( "context" diff --git a/libcontainerd/client_daemon_windows.go b/libcontainerd/client_daemon_windows.go index 6215346e7e..4aba33e18c 100644 --- a/libcontainerd/client_daemon_windows.go +++ b/libcontainerd/client_daemon_windows.go @@ -1,4 +1,4 @@ -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import ( "fmt" diff --git a/libcontainerd/client_local_windows.go b/libcontainerd/client_local_windows.go index 75329b25fd..51475b42d0 100644 --- a/libcontainerd/client_local_windows.go +++ b/libcontainerd/client_local_windows.go @@ -1,4 +1,4 @@ -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import ( "context" diff --git a/libcontainerd/errors.go b/libcontainerd/errors.go index dcd2525312..bdc26715bc 100644 --- a/libcontainerd/errors.go +++ b/libcontainerd/errors.go @@ -1,4 +1,4 @@ -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import ( "errors" diff --git a/libcontainerd/process_windows.go b/libcontainerd/process_windows.go index 76b92a6ceb..8cdf1daca8 100644 --- a/libcontainerd/process_windows.go +++ b/libcontainerd/process_windows.go @@ -1,4 +1,4 @@ -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import ( "io" diff --git a/libcontainerd/queue.go b/libcontainerd/queue.go index 38d74a0a46..207722c441 100644 --- a/libcontainerd/queue.go +++ b/libcontainerd/queue.go @@ -1,4 +1,4 @@ -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import "sync" diff --git a/libcontainerd/queue_test.go b/libcontainerd/queue_test.go index 902f48aef2..92ee22a9f3 100644 --- a/libcontainerd/queue_test.go +++ b/libcontainerd/queue_test.go @@ -1,4 +1,4 @@ -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import ( "testing" diff --git a/libcontainerd/remote_daemon.go b/libcontainerd/remote_daemon.go index 609bcfba7a..1cc1ebb81e 100644 --- a/libcontainerd/remote_daemon.go +++ b/libcontainerd/remote_daemon.go @@ -1,6 +1,6 @@ // +build !windows -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import ( "context" diff --git a/libcontainerd/remote_daemon_linux.go b/libcontainerd/remote_daemon_linux.go index e99a4fd355..235bb21627 100644 --- a/libcontainerd/remote_daemon_linux.go +++ b/libcontainerd/remote_daemon_linux.go @@ -1,4 +1,4 @@ -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import ( "os" diff --git a/libcontainerd/remote_daemon_options.go b/libcontainerd/remote_daemon_options.go index bc082777a7..d40e4c0c42 100644 --- a/libcontainerd/remote_daemon_options.go +++ b/libcontainerd/remote_daemon_options.go @@ -1,6 +1,6 @@ // +build !windows -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import "fmt" diff --git a/libcontainerd/remote_daemon_options_linux.go b/libcontainerd/remote_daemon_options_linux.go index 7376c06119..24ef5a5a4b 100644 --- a/libcontainerd/remote_daemon_options_linux.go +++ b/libcontainerd/remote_daemon_options_linux.go @@ -1,4 +1,4 @@ -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import "fmt" diff --git a/libcontainerd/remote_daemon_windows.go b/libcontainerd/remote_daemon_windows.go index 44b5fc0837..89342d7395 100644 --- a/libcontainerd/remote_daemon_windows.go +++ b/libcontainerd/remote_daemon_windows.go @@ -1,6 +1,6 @@ // +build remote_daemon -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import ( "os" diff --git a/libcontainerd/remote_local.go b/libcontainerd/remote_local.go index ad3be03abe..8ea5198b87 100644 --- a/libcontainerd/remote_local.go +++ b/libcontainerd/remote_local.go @@ -1,6 +1,6 @@ // +build windows -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import ( "sync" diff --git a/libcontainerd/types.go b/libcontainerd/types.go index 4286415eae..f27fd50313 100644 --- a/libcontainerd/types.go +++ b/libcontainerd/types.go @@ -1,4 +1,4 @@ -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import ( "context" diff --git a/libcontainerd/types_linux.go b/libcontainerd/types_linux.go index b63efcb15c..ae7a757c65 100644 --- a/libcontainerd/types_linux.go +++ b/libcontainerd/types_linux.go @@ -1,4 +1,4 @@ -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import ( "time" diff --git a/libcontainerd/types_windows.go b/libcontainerd/types_windows.go index aab8079f3b..9041a2e8d5 100644 --- a/libcontainerd/types_windows.go +++ b/libcontainerd/types_windows.go @@ -1,4 +1,4 @@ -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import ( "time" diff --git a/libcontainerd/utils_linux.go b/libcontainerd/utils_linux.go index 0f0adf322d..ce17d1963d 100644 --- a/libcontainerd/utils_linux.go +++ b/libcontainerd/utils_linux.go @@ -1,4 +1,4 @@ -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import "syscall" diff --git a/libcontainerd/utils_windows.go b/libcontainerd/utils_windows.go index 1347ff2b95..fbf243d4f9 100644 --- a/libcontainerd/utils_windows.go +++ b/libcontainerd/utils_windows.go @@ -1,4 +1,4 @@ -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import ( "strings" diff --git a/libcontainerd/utils_windows_test.go b/libcontainerd/utils_windows_test.go index f3679bfb71..2e0c260eca 100644 --- a/libcontainerd/utils_windows_test.go +++ b/libcontainerd/utils_windows_test.go @@ -1,4 +1,4 @@ -package libcontainerd +package libcontainerd // import "github.com/docker/docker/libcontainerd" import ( "testing" diff --git a/migrate/v1/migratev1.go b/migrate/v1/migratev1.go index 02fcd2c2cb..4777c16c55 100644 --- a/migrate/v1/migratev1.go +++ b/migrate/v1/migratev1.go @@ -1,4 +1,4 @@ -package v1 +package v1 // import "github.com/docker/docker/migrate/v1" import ( "errors" diff --git a/migrate/v1/migratev1_test.go b/migrate/v1/migratev1_test.go index 28b7df3f3d..09cdac82da 100644 --- a/migrate/v1/migratev1_test.go +++ b/migrate/v1/migratev1_test.go @@ -1,4 +1,4 @@ -package v1 +package v1 // import "github.com/docker/docker/migrate/v1" import ( "crypto/rand" diff --git a/oci/defaults.go b/oci/defaults.go index 28270de9fe..578da3a81b 100644 --- a/oci/defaults.go +++ b/oci/defaults.go @@ -1,4 +1,4 @@ -package oci +package oci // import "github.com/docker/docker/oci" import ( "os" diff --git a/oci/devices_linux.go b/oci/devices_linux.go index fa9c726984..7f1658e53c 100644 --- a/oci/devices_linux.go +++ b/oci/devices_linux.go @@ -1,4 +1,4 @@ -package oci +package oci // import "github.com/docker/docker/oci" import ( "fmt" diff --git a/oci/devices_unsupported.go b/oci/devices_unsupported.go index b5d3fab595..af6dd3bda2 100644 --- a/oci/devices_unsupported.go +++ b/oci/devices_unsupported.go @@ -1,6 +1,6 @@ // +build !linux -package oci +package oci // import "github.com/docker/docker/oci" import ( "errors" diff --git a/oci/namespaces.go b/oci/namespaces.go index cb222dcee2..f32e489b4a 100644 --- a/oci/namespaces.go +++ b/oci/namespaces.go @@ -1,4 +1,4 @@ -package oci +package oci // import "github.com/docker/docker/oci" import specs "github.com/opencontainers/runtime-spec/specs-go" diff --git a/opts/env.go b/opts/env.go index 4fbd470bcf..f6e5e9074d 100644 --- a/opts/env.go +++ b/opts/env.go @@ -1,4 +1,4 @@ -package opts +package opts // import "github.com/docker/docker/opts" import ( "fmt" diff --git a/opts/env_test.go b/opts/env_test.go index 454e989438..1ecf1e2b94 100644 --- a/opts/env_test.go +++ b/opts/env_test.go @@ -1,4 +1,4 @@ -package opts +package opts // import "github.com/docker/docker/opts" import ( "fmt" diff --git a/opts/hosts.go b/opts/hosts.go index f46b8ee711..2adf4211d5 100644 --- a/opts/hosts.go +++ b/opts/hosts.go @@ -1,4 +1,4 @@ -package opts +package opts // import "github.com/docker/docker/opts" import ( "fmt" diff --git a/opts/hosts_test.go b/opts/hosts_test.go index f3ae848bf6..cd8c3f91f2 100644 --- a/opts/hosts_test.go +++ b/opts/hosts_test.go @@ -1,4 +1,4 @@ -package opts +package opts // import "github.com/docker/docker/opts" import ( "fmt" diff --git a/opts/hosts_unix.go b/opts/hosts_unix.go index 611407a9d9..9d5bb64565 100644 --- a/opts/hosts_unix.go +++ b/opts/hosts_unix.go @@ -1,6 +1,6 @@ // +build !windows -package opts +package opts // import "github.com/docker/docker/opts" import "fmt" diff --git a/opts/hosts_windows.go b/opts/hosts_windows.go index 684f0e128c..906eba53ee 100644 --- a/opts/hosts_windows.go +++ b/opts/hosts_windows.go @@ -1,4 +1,4 @@ -package opts +package opts // import "github.com/docker/docker/opts" // DefaultHost constant defines the default host string used by docker on Windows var DefaultHost = "npipe://" + DefaultNamedPipe diff --git a/opts/ip.go b/opts/ip.go index 1095063977..cfbff3a9fd 100644 --- a/opts/ip.go +++ b/opts/ip.go @@ -1,4 +1,4 @@ -package opts +package opts // import "github.com/docker/docker/opts" import ( "fmt" diff --git a/opts/ip_test.go b/opts/ip_test.go index 1027d84a05..966d7f21ec 100644 --- a/opts/ip_test.go +++ b/opts/ip_test.go @@ -1,4 +1,4 @@ -package opts +package opts // import "github.com/docker/docker/opts" import ( "net" diff --git a/opts/opts.go b/opts/opts.go index a2cc5e33b1..bfdcb996b0 100644 --- a/opts/opts.go +++ b/opts/opts.go @@ -1,4 +1,4 @@ -package opts +package opts // import "github.com/docker/docker/opts" import ( "fmt" diff --git a/opts/opts_test.go b/opts/opts_test.go index 269f88639b..577395edcb 100644 --- a/opts/opts_test.go +++ b/opts/opts_test.go @@ -1,4 +1,4 @@ -package opts +package opts // import "github.com/docker/docker/opts" import ( "fmt" diff --git a/opts/opts_unix.go b/opts/opts_unix.go index 2766a43a08..0c32367cb2 100644 --- a/opts/opts_unix.go +++ b/opts/opts_unix.go @@ -1,6 +1,6 @@ // +build !windows -package opts +package opts // import "github.com/docker/docker/opts" // DefaultHTTPHost Default HTTP Host used if only port is provided to -H flag e.g. dockerd -H tcp://:8080 const DefaultHTTPHost = "localhost" diff --git a/opts/opts_windows.go b/opts/opts_windows.go index 98b7251a9e..0e1b6c6d18 100644 --- a/opts/opts_windows.go +++ b/opts/opts_windows.go @@ -1,4 +1,4 @@ -package opts +package opts // import "github.com/docker/docker/opts" // TODO Windows. Identify bug in GOLang 1.5.1+ and/or Windows Server 2016 TP5. // @jhowardmsft, @swernli. diff --git a/opts/quotedstring.go b/opts/quotedstring.go index 09c68a5261..6c889070e8 100644 --- a/opts/quotedstring.go +++ b/opts/quotedstring.go @@ -1,4 +1,4 @@ -package opts +package opts // import "github.com/docker/docker/opts" // QuotedString is a string that may have extra quotes around the value. The // quotes are stripped from the value. diff --git a/opts/quotedstring_test.go b/opts/quotedstring_test.go index 54dcbc19bc..e24257a5d4 100644 --- a/opts/quotedstring_test.go +++ b/opts/quotedstring_test.go @@ -1,4 +1,4 @@ -package opts +package opts // import "github.com/docker/docker/opts" import ( "testing" diff --git a/opts/runtime.go b/opts/runtime.go index 4361b3ce09..4b9babf0a5 100644 --- a/opts/runtime.go +++ b/opts/runtime.go @@ -1,4 +1,4 @@ -package opts +package opts // import "github.com/docker/docker/opts" import ( "fmt" diff --git a/opts/ulimit.go b/opts/ulimit.go index a2a65fcd21..0e2a36236c 100644 --- a/opts/ulimit.go +++ b/opts/ulimit.go @@ -1,4 +1,4 @@ -package opts +package opts // import "github.com/docker/docker/opts" import ( "fmt" diff --git a/opts/ulimit_test.go b/opts/ulimit_test.go index 0aa3facdfb..41e12627c8 100644 --- a/opts/ulimit_test.go +++ b/opts/ulimit_test.go @@ -1,4 +1,4 @@ -package opts +package opts // import "github.com/docker/docker/opts" import ( "testing" diff --git a/pkg/aaparser/aaparser.go b/pkg/aaparser/aaparser.go index 5de4a4d79b..9c12e8db8d 100644 --- a/pkg/aaparser/aaparser.go +++ b/pkg/aaparser/aaparser.go @@ -1,5 +1,5 @@ // Package aaparser is a convenience package interacting with `apparmor_parser`. -package aaparser +package aaparser // import "github.com/docker/docker/pkg/aaparser" import ( "fmt" diff --git a/pkg/aaparser/aaparser_test.go b/pkg/aaparser/aaparser_test.go index 69bc8d2fd8..6d1f737702 100644 --- a/pkg/aaparser/aaparser_test.go +++ b/pkg/aaparser/aaparser_test.go @@ -1,4 +1,4 @@ -package aaparser +package aaparser // import "github.com/docker/docker/pkg/aaparser" import ( "testing" diff --git a/pkg/archive/archive.go b/pkg/archive/archive.go index 5f7f562677..e8f50869d9 100644 --- a/pkg/archive/archive.go +++ b/pkg/archive/archive.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "archive/tar" diff --git a/pkg/archive/archive_linux.go b/pkg/archive/archive_linux.go index 6e950e93cf..970d4d0680 100644 --- a/pkg/archive/archive_linux.go +++ b/pkg/archive/archive_linux.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "archive/tar" diff --git a/pkg/archive/archive_linux_test.go b/pkg/archive/archive_linux_test.go index da683c8c96..e48ef1aa11 100644 --- a/pkg/archive/archive_linux_test.go +++ b/pkg/archive/archive_linux_test.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "io/ioutil" diff --git a/pkg/archive/archive_other.go b/pkg/archive/archive_other.go index 54acbf2856..462dfc6323 100644 --- a/pkg/archive/archive_other.go +++ b/pkg/archive/archive_other.go @@ -1,6 +1,6 @@ // +build !linux -package archive +package archive // import "github.com/docker/docker/pkg/archive" func getWhiteoutConverter(format WhiteoutFormat) tarWhiteoutConverter { return nil diff --git a/pkg/archive/archive_test.go b/pkg/archive/archive_test.go index 0e94f41c6d..70db8d4a1b 100644 --- a/pkg/archive/archive_test.go +++ b/pkg/archive/archive_test.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "archive/tar" diff --git a/pkg/archive/archive_unix.go b/pkg/archive/archive_unix.go index 02e95adff5..e81076c170 100644 --- a/pkg/archive/archive_unix.go +++ b/pkg/archive/archive_unix.go @@ -1,6 +1,6 @@ // +build !windows -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "archive/tar" diff --git a/pkg/archive/archive_unix_test.go b/pkg/archive/archive_unix_test.go index 8ca21d2221..17de96e94d 100644 --- a/pkg/archive/archive_unix_test.go +++ b/pkg/archive/archive_unix_test.go @@ -1,6 +1,6 @@ // +build !windows -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "bytes" diff --git a/pkg/archive/archive_windows.go b/pkg/archive/archive_windows.go index 66243a64ab..e75bfc9b62 100644 --- a/pkg/archive/archive_windows.go +++ b/pkg/archive/archive_windows.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "archive/tar" diff --git a/pkg/archive/archive_windows_test.go b/pkg/archive/archive_windows_test.go index 685e114baf..b3dbb32754 100644 --- a/pkg/archive/archive_windows_test.go +++ b/pkg/archive/archive_windows_test.go @@ -1,6 +1,6 @@ // +build windows -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "io/ioutil" diff --git a/pkg/archive/changes.go b/pkg/archive/changes.go index d78fe6ac65..43734db5b1 100644 --- a/pkg/archive/changes.go +++ b/pkg/archive/changes.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "archive/tar" diff --git a/pkg/archive/changes_linux.go b/pkg/archive/changes_linux.go index e9eb478fe3..78a5393c8e 100644 --- a/pkg/archive/changes_linux.go +++ b/pkg/archive/changes_linux.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "bytes" diff --git a/pkg/archive/changes_other.go b/pkg/archive/changes_other.go index da70ed37c4..ba744741cd 100644 --- a/pkg/archive/changes_other.go +++ b/pkg/archive/changes_other.go @@ -1,6 +1,6 @@ // +build !linux -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "fmt" diff --git a/pkg/archive/changes_posix_test.go b/pkg/archive/changes_posix_test.go index 1a18370376..76ee40bb60 100644 --- a/pkg/archive/changes_posix_test.go +++ b/pkg/archive/changes_posix_test.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "archive/tar" diff --git a/pkg/archive/changes_test.go b/pkg/archive/changes_test.go index 3f2bd56aeb..f316cd3203 100644 --- a/pkg/archive/changes_test.go +++ b/pkg/archive/changes_test.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "io/ioutil" diff --git a/pkg/archive/changes_unix.go b/pkg/archive/changes_unix.go index 7aa1226d7f..c06a209d8e 100644 --- a/pkg/archive/changes_unix.go +++ b/pkg/archive/changes_unix.go @@ -1,6 +1,6 @@ // +build !windows -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "os" diff --git a/pkg/archive/changes_windows.go b/pkg/archive/changes_windows.go index 6fd353269b..6555c01368 100644 --- a/pkg/archive/changes_windows.go +++ b/pkg/archive/changes_windows.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "os" diff --git a/pkg/archive/copy.go b/pkg/archive/copy.go index d1e036d5c6..d0f13ca79b 100644 --- a/pkg/archive/copy.go +++ b/pkg/archive/copy.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "archive/tar" diff --git a/pkg/archive/copy_unix.go b/pkg/archive/copy_unix.go index e305b5e4af..3958364f5b 100644 --- a/pkg/archive/copy_unix.go +++ b/pkg/archive/copy_unix.go @@ -1,6 +1,6 @@ // +build !windows -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "path/filepath" diff --git a/pkg/archive/copy_unix_test.go b/pkg/archive/copy_unix_test.go index e08bcb4916..3126d8b51e 100644 --- a/pkg/archive/copy_unix_test.go +++ b/pkg/archive/copy_unix_test.go @@ -2,7 +2,7 @@ // TODO Windows: Some of these tests may be salvageable and portable to Windows. -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "bytes" diff --git a/pkg/archive/copy_windows.go b/pkg/archive/copy_windows.go index 2b775b45c4..a878d1bac4 100644 --- a/pkg/archive/copy_windows.go +++ b/pkg/archive/copy_windows.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "path/filepath" diff --git a/pkg/archive/diff.go b/pkg/archive/diff.go index 019facd383..d0cff98ffc 100644 --- a/pkg/archive/diff.go +++ b/pkg/archive/diff.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "archive/tar" diff --git a/pkg/archive/diff_test.go b/pkg/archive/diff_test.go index 8167941ac0..19f2555e1a 100644 --- a/pkg/archive/diff_test.go +++ b/pkg/archive/diff_test.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "archive/tar" diff --git a/pkg/archive/time_linux.go b/pkg/archive/time_linux.go index 3448569b1e..58aefe3efb 100644 --- a/pkg/archive/time_linux.go +++ b/pkg/archive/time_linux.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "syscall" diff --git a/pkg/archive/time_unsupported.go b/pkg/archive/time_unsupported.go index e85aac0540..f58bf227fd 100644 --- a/pkg/archive/time_unsupported.go +++ b/pkg/archive/time_unsupported.go @@ -1,6 +1,6 @@ // +build !linux -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "syscall" diff --git a/pkg/archive/utils_test.go b/pkg/archive/utils_test.go index 01b9e92d1c..a20f58ddab 100644 --- a/pkg/archive/utils_test.go +++ b/pkg/archive/utils_test.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "archive/tar" diff --git a/pkg/archive/whiteouts.go b/pkg/archive/whiteouts.go index d20478a10d..4c072a87ee 100644 --- a/pkg/archive/whiteouts.go +++ b/pkg/archive/whiteouts.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" // Whiteouts are files with a special meaning for the layered filesystem. // Docker uses AUFS whiteout files inside exported archives. In other diff --git a/pkg/archive/wrap.go b/pkg/archive/wrap.go index b39d12c878..85435694cf 100644 --- a/pkg/archive/wrap.go +++ b/pkg/archive/wrap.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "archive/tar" diff --git a/pkg/archive/wrap_test.go b/pkg/archive/wrap_test.go index bd26bda3a2..6decf8fccb 100644 --- a/pkg/archive/wrap_test.go +++ b/pkg/archive/wrap_test.go @@ -1,4 +1,4 @@ -package archive +package archive // import "github.com/docker/docker/pkg/archive" import ( "archive/tar" diff --git a/pkg/authorization/api.go b/pkg/authorization/api.go index e8d7996c6e..cc0c12d502 100644 --- a/pkg/authorization/api.go +++ b/pkg/authorization/api.go @@ -1,4 +1,4 @@ -package authorization +package authorization // import "github.com/docker/docker/pkg/authorization" import ( "crypto/x509" diff --git a/pkg/authorization/api_test.go b/pkg/authorization/api_test.go index 1031949069..90a984276d 100644 --- a/pkg/authorization/api_test.go +++ b/pkg/authorization/api_test.go @@ -1,4 +1,4 @@ -package authorization +package authorization // import "github.com/docker/docker/pkg/authorization" import ( "crypto/rand" diff --git a/pkg/authorization/authz.go b/pkg/authorization/authz.go index 3bd2fc0bf6..fd87e9bef0 100644 --- a/pkg/authorization/authz.go +++ b/pkg/authorization/authz.go @@ -1,4 +1,4 @@ -package authorization +package authorization // import "github.com/docker/docker/pkg/authorization" import ( "bufio" diff --git a/pkg/authorization/authz_unix_test.go b/pkg/authorization/authz_unix_test.go index a692802d55..d9c7c70e77 100644 --- a/pkg/authorization/authz_unix_test.go +++ b/pkg/authorization/authz_unix_test.go @@ -3,7 +3,7 @@ // TODO Windows: This uses a Unix socket for testing. This might be possible // to port to Windows using a named pipe instead. -package authorization +package authorization // import "github.com/docker/docker/pkg/authorization" import ( "bytes" diff --git a/pkg/authorization/middleware.go b/pkg/authorization/middleware.go index 24a457ae1d..0e29eca3de 100644 --- a/pkg/authorization/middleware.go +++ b/pkg/authorization/middleware.go @@ -1,4 +1,4 @@ -package authorization +package authorization // import "github.com/docker/docker/pkg/authorization" import ( "net/http" diff --git a/pkg/authorization/middleware_test.go b/pkg/authorization/middleware_test.go index fc7401135c..3812d804e3 100644 --- a/pkg/authorization/middleware_test.go +++ b/pkg/authorization/middleware_test.go @@ -1,4 +1,4 @@ -package authorization +package authorization // import "github.com/docker/docker/pkg/authorization" import ( "net/http" diff --git a/pkg/authorization/middleware_unix_test.go b/pkg/authorization/middleware_unix_test.go index fd684f1208..257832b338 100644 --- a/pkg/authorization/middleware_unix_test.go +++ b/pkg/authorization/middleware_unix_test.go @@ -1,6 +1,6 @@ // +build !windows -package authorization +package authorization // import "github.com/docker/docker/pkg/authorization" import ( "net/http" diff --git a/pkg/authorization/plugin.go b/pkg/authorization/plugin.go index 2797a72d58..3316fd870c 100644 --- a/pkg/authorization/plugin.go +++ b/pkg/authorization/plugin.go @@ -1,4 +1,4 @@ -package authorization +package authorization // import "github.com/docker/docker/pkg/authorization" import ( "sync" diff --git a/pkg/authorization/response.go b/pkg/authorization/response.go index cea64f2e80..647ff9ff6e 100644 --- a/pkg/authorization/response.go +++ b/pkg/authorization/response.go @@ -1,4 +1,4 @@ -package authorization +package authorization // import "github.com/docker/docker/pkg/authorization" import ( "bufio" diff --git a/pkg/broadcaster/unbuffered.go b/pkg/broadcaster/unbuffered.go index 784d65d6fe..6bb285123f 100644 --- a/pkg/broadcaster/unbuffered.go +++ b/pkg/broadcaster/unbuffered.go @@ -1,4 +1,4 @@ -package broadcaster +package broadcaster // import "github.com/docker/docker/pkg/broadcaster" import ( "io" diff --git a/pkg/broadcaster/unbuffered_test.go b/pkg/broadcaster/unbuffered_test.go index 9f8e72bc0f..2d885c77c1 100644 --- a/pkg/broadcaster/unbuffered_test.go +++ b/pkg/broadcaster/unbuffered_test.go @@ -1,4 +1,4 @@ -package broadcaster +package broadcaster // import "github.com/docker/docker/pkg/broadcaster" import ( "bytes" diff --git a/pkg/chrootarchive/archive.go b/pkg/chrootarchive/archive.go index d6d07888e8..47c9a2b94c 100644 --- a/pkg/chrootarchive/archive.go +++ b/pkg/chrootarchive/archive.go @@ -1,4 +1,4 @@ -package chrootarchive +package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive" import ( "fmt" diff --git a/pkg/chrootarchive/archive_test.go b/pkg/chrootarchive/archive_test.go index 1abfb40b94..b47654b54c 100644 --- a/pkg/chrootarchive/archive_test.go +++ b/pkg/chrootarchive/archive_test.go @@ -1,4 +1,4 @@ -package chrootarchive +package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive" import ( "bytes" diff --git a/pkg/chrootarchive/archive_unix.go b/pkg/chrootarchive/archive_unix.go index 75c010e98f..5df8afd662 100644 --- a/pkg/chrootarchive/archive_unix.go +++ b/pkg/chrootarchive/archive_unix.go @@ -1,6 +1,6 @@ // +build !windows -package chrootarchive +package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive" import ( "bytes" diff --git a/pkg/chrootarchive/archive_windows.go b/pkg/chrootarchive/archive_windows.go index 0a500ed5c2..f2973132a3 100644 --- a/pkg/chrootarchive/archive_windows.go +++ b/pkg/chrootarchive/archive_windows.go @@ -1,4 +1,4 @@ -package chrootarchive +package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive" import ( "io" diff --git a/pkg/chrootarchive/chroot_linux.go b/pkg/chrootarchive/chroot_linux.go index 958e06cf8d..9802fad514 100644 --- a/pkg/chrootarchive/chroot_linux.go +++ b/pkg/chrootarchive/chroot_linux.go @@ -1,4 +1,4 @@ -package chrootarchive +package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive" import ( "fmt" diff --git a/pkg/chrootarchive/chroot_unix.go b/pkg/chrootarchive/chroot_unix.go index f9b5dece8c..9a1ee58754 100644 --- a/pkg/chrootarchive/chroot_unix.go +++ b/pkg/chrootarchive/chroot_unix.go @@ -1,6 +1,6 @@ // +build !windows,!linux -package chrootarchive +package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive" import "golang.org/x/sys/unix" diff --git a/pkg/chrootarchive/diff.go b/pkg/chrootarchive/diff.go index 49acad79ff..7712cc17c8 100644 --- a/pkg/chrootarchive/diff.go +++ b/pkg/chrootarchive/diff.go @@ -1,4 +1,4 @@ -package chrootarchive +package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive" import ( "io" diff --git a/pkg/chrootarchive/diff_unix.go b/pkg/chrootarchive/diff_unix.go index 33098b33e8..d96a09f8fa 100644 --- a/pkg/chrootarchive/diff_unix.go +++ b/pkg/chrootarchive/diff_unix.go @@ -1,6 +1,6 @@ //+build !windows -package chrootarchive +package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive" import ( "bytes" diff --git a/pkg/chrootarchive/diff_windows.go b/pkg/chrootarchive/diff_windows.go index dc07eb680d..8f3f3a4a8a 100644 --- a/pkg/chrootarchive/diff_windows.go +++ b/pkg/chrootarchive/diff_windows.go @@ -1,4 +1,4 @@ -package chrootarchive +package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive" import ( "fmt" diff --git a/pkg/chrootarchive/init_unix.go b/pkg/chrootarchive/init_unix.go index 4f637f17b8..a15e4bb83c 100644 --- a/pkg/chrootarchive/init_unix.go +++ b/pkg/chrootarchive/init_unix.go @@ -1,6 +1,6 @@ // +build !windows -package chrootarchive +package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive" import ( "fmt" diff --git a/pkg/chrootarchive/init_windows.go b/pkg/chrootarchive/init_windows.go index fa17c9bf83..15ed874e77 100644 --- a/pkg/chrootarchive/init_windows.go +++ b/pkg/chrootarchive/init_windows.go @@ -1,4 +1,4 @@ -package chrootarchive +package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive" func init() { } diff --git a/pkg/containerfs/archiver.go b/pkg/containerfs/archiver.go index 3eeab49912..405f14f780 100644 --- a/pkg/containerfs/archiver.go +++ b/pkg/containerfs/archiver.go @@ -1,4 +1,4 @@ -package containerfs +package containerfs // import "github.com/docker/docker/pkg/containerfs" import ( "archive/tar" diff --git a/pkg/containerfs/containerfs.go b/pkg/containerfs/containerfs.go index 05842ac64c..7bb1d8c369 100644 --- a/pkg/containerfs/containerfs.go +++ b/pkg/containerfs/containerfs.go @@ -1,4 +1,4 @@ -package containerfs +package containerfs // import "github.com/docker/docker/pkg/containerfs" import ( "path/filepath" diff --git a/pkg/containerfs/containerfs_unix.go b/pkg/containerfs/containerfs_unix.go index fbc418f012..6a99459517 100644 --- a/pkg/containerfs/containerfs_unix.go +++ b/pkg/containerfs/containerfs_unix.go @@ -1,6 +1,6 @@ // +build !windows -package containerfs +package containerfs // import "github.com/docker/docker/pkg/containerfs" import "path/filepath" diff --git a/pkg/containerfs/containerfs_windows.go b/pkg/containerfs/containerfs_windows.go index 56f5a7564f..9fb7084628 100644 --- a/pkg/containerfs/containerfs_windows.go +++ b/pkg/containerfs/containerfs_windows.go @@ -1,4 +1,4 @@ -package containerfs +package containerfs // import "github.com/docker/docker/pkg/containerfs" import "path/filepath" diff --git a/pkg/devicemapper/devmapper.go b/pkg/devicemapper/devmapper.go index c72992f7a1..63243637a7 100644 --- a/pkg/devicemapper/devmapper.go +++ b/pkg/devicemapper/devmapper.go @@ -1,6 +1,6 @@ // +build linux,cgo -package devicemapper +package devicemapper // import "github.com/docker/docker/pkg/devicemapper" import ( "errors" diff --git a/pkg/devicemapper/devmapper_log.go b/pkg/devicemapper/devmapper_log.go index 1da75101cf..5a5773d44f 100644 --- a/pkg/devicemapper/devmapper_log.go +++ b/pkg/devicemapper/devmapper_log.go @@ -1,6 +1,6 @@ // +build linux,cgo -package devicemapper +package devicemapper // import "github.com/docker/docker/pkg/devicemapper" import "C" diff --git a/pkg/devicemapper/devmapper_wrapper.go b/pkg/devicemapper/devmapper_wrapper.go index 64e82dfd04..8e28f642da 100644 --- a/pkg/devicemapper/devmapper_wrapper.go +++ b/pkg/devicemapper/devmapper_wrapper.go @@ -1,6 +1,6 @@ // +build linux,cgo -package devicemapper +package devicemapper // import "github.com/docker/docker/pkg/devicemapper" /* #define _GNU_SOURCE diff --git a/pkg/devicemapper/devmapper_wrapper_deferred_remove.go b/pkg/devicemapper/devmapper_wrapper_deferred_remove.go index 7f793c2708..2db5c799c4 100644 --- a/pkg/devicemapper/devmapper_wrapper_deferred_remove.go +++ b/pkg/devicemapper/devmapper_wrapper_deferred_remove.go @@ -1,6 +1,6 @@ // +build linux,cgo,!libdm_no_deferred_remove -package devicemapper +package devicemapper // import "github.com/docker/docker/pkg/devicemapper" // #include import "C" diff --git a/pkg/devicemapper/devmapper_wrapper_dynamic.go b/pkg/devicemapper/devmapper_wrapper_dynamic.go index 7d84508982..8a1098f7d5 100644 --- a/pkg/devicemapper/devmapper_wrapper_dynamic.go +++ b/pkg/devicemapper/devmapper_wrapper_dynamic.go @@ -1,6 +1,6 @@ // +build linux,cgo,!static_build -package devicemapper +package devicemapper // import "github.com/docker/docker/pkg/devicemapper" // #cgo pkg-config: devmapper import "C" diff --git a/pkg/devicemapper/devmapper_wrapper_no_deferred_remove.go b/pkg/devicemapper/devmapper_wrapper_no_deferred_remove.go index a880fec8c4..33eabe593b 100644 --- a/pkg/devicemapper/devmapper_wrapper_no_deferred_remove.go +++ b/pkg/devicemapper/devmapper_wrapper_no_deferred_remove.go @@ -1,6 +1,6 @@ // +build linux,cgo,libdm_no_deferred_remove -package devicemapper +package devicemapper // import "github.com/docker/docker/pkg/devicemapper" // LibraryDeferredRemovalSupport tells if the feature is enabled in the build const LibraryDeferredRemovalSupport = false diff --git a/pkg/devicemapper/ioctl.go b/pkg/devicemapper/ioctl.go index 50ea7c4823..ec5a0b33ba 100644 --- a/pkg/devicemapper/ioctl.go +++ b/pkg/devicemapper/ioctl.go @@ -1,6 +1,6 @@ // +build linux,cgo -package devicemapper +package devicemapper // import "github.com/docker/docker/pkg/devicemapper" import ( "unsafe" diff --git a/pkg/devicemapper/log.go b/pkg/devicemapper/log.go index cee5e54549..dd330ba4f8 100644 --- a/pkg/devicemapper/log.go +++ b/pkg/devicemapper/log.go @@ -1,4 +1,4 @@ -package devicemapper +package devicemapper // import "github.com/docker/docker/pkg/devicemapper" // definitions from lvm2 lib/log/log.h const ( diff --git a/pkg/directory/directory.go b/pkg/directory/directory.go index 1715ef45d9..51d4a6ea22 100644 --- a/pkg/directory/directory.go +++ b/pkg/directory/directory.go @@ -1,4 +1,4 @@ -package directory +package directory // import "github.com/docker/docker/pkg/directory" import ( "io/ioutil" diff --git a/pkg/directory/directory_test.go b/pkg/directory/directory_test.go index 2b7a4657be..4f6d628ec5 100644 --- a/pkg/directory/directory_test.go +++ b/pkg/directory/directory_test.go @@ -1,4 +1,4 @@ -package directory +package directory // import "github.com/docker/docker/pkg/directory" import ( "io/ioutil" diff --git a/pkg/directory/directory_unix.go b/pkg/directory/directory_unix.go index 25da197fc0..6cb5db24ec 100644 --- a/pkg/directory/directory_unix.go +++ b/pkg/directory/directory_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd -package directory +package directory // import "github.com/docker/docker/pkg/directory" import ( "os" diff --git a/pkg/directory/directory_windows.go b/pkg/directory/directory_windows.go index efe05cecef..b27cdde996 100644 --- a/pkg/directory/directory_windows.go +++ b/pkg/directory/directory_windows.go @@ -1,4 +1,4 @@ -package directory +package directory // import "github.com/docker/docker/pkg/directory" import ( "os" diff --git a/pkg/discovery/backends.go b/pkg/discovery/backends.go index a25b86c3e6..1d038285ad 100644 --- a/pkg/discovery/backends.go +++ b/pkg/discovery/backends.go @@ -1,4 +1,4 @@ -package discovery +package discovery // import "github.com/docker/docker/pkg/discovery" import ( "fmt" diff --git a/pkg/discovery/discovery.go b/pkg/discovery/discovery.go index ca7f587458..828c5ca488 100644 --- a/pkg/discovery/discovery.go +++ b/pkg/discovery/discovery.go @@ -1,4 +1,4 @@ -package discovery +package discovery // import "github.com/docker/docker/pkg/discovery" import ( "errors" diff --git a/pkg/discovery/discovery_test.go b/pkg/discovery/discovery_test.go index 6084f3ef0d..ffe8cb9122 100644 --- a/pkg/discovery/discovery_test.go +++ b/pkg/discovery/discovery_test.go @@ -1,4 +1,4 @@ -package discovery +package discovery // import "github.com/docker/docker/pkg/discovery" import ( "testing" diff --git a/pkg/discovery/entry.go b/pkg/discovery/entry.go index ce23bbf89b..be06c75787 100644 --- a/pkg/discovery/entry.go +++ b/pkg/discovery/entry.go @@ -1,4 +1,4 @@ -package discovery +package discovery // import "github.com/docker/docker/pkg/discovery" import "net" diff --git a/pkg/discovery/file/file.go b/pkg/discovery/file/file.go index 2b8e27b754..1494af485f 100644 --- a/pkg/discovery/file/file.go +++ b/pkg/discovery/file/file.go @@ -1,4 +1,4 @@ -package file +package file // import "github.com/docker/docker/pkg/discovery/file" import ( "fmt" diff --git a/pkg/discovery/file/file_test.go b/pkg/discovery/file/file_test.go index 667f00ba0d..010e941c2a 100644 --- a/pkg/discovery/file/file_test.go +++ b/pkg/discovery/file/file_test.go @@ -1,4 +1,4 @@ -package file +package file // import "github.com/docker/docker/pkg/discovery/file" import ( "io/ioutil" diff --git a/pkg/discovery/generator.go b/pkg/discovery/generator.go index d22298298f..788015fe23 100644 --- a/pkg/discovery/generator.go +++ b/pkg/discovery/generator.go @@ -1,4 +1,4 @@ -package discovery +package discovery // import "github.com/docker/docker/pkg/discovery" import ( "fmt" diff --git a/pkg/discovery/generator_test.go b/pkg/discovery/generator_test.go index 6281c46665..5126df576e 100644 --- a/pkg/discovery/generator_test.go +++ b/pkg/discovery/generator_test.go @@ -1,4 +1,4 @@ -package discovery +package discovery // import "github.com/docker/docker/pkg/discovery" import ( "github.com/go-check/check" diff --git a/pkg/discovery/kv/kv.go b/pkg/discovery/kv/kv.go index e860b369e7..30fe6714c8 100644 --- a/pkg/discovery/kv/kv.go +++ b/pkg/discovery/kv/kv.go @@ -1,4 +1,4 @@ -package kv +package kv // import "github.com/docker/docker/pkg/discovery/kv" import ( "fmt" diff --git a/pkg/discovery/kv/kv_test.go b/pkg/discovery/kv/kv_test.go index adc5c289a4..79fd91c61f 100644 --- a/pkg/discovery/kv/kv_test.go +++ b/pkg/discovery/kv/kv_test.go @@ -1,4 +1,4 @@ -package kv +package kv // import "github.com/docker/docker/pkg/discovery/kv" import ( "errors" diff --git a/pkg/discovery/memory/memory.go b/pkg/discovery/memory/memory.go index ba8b1f55f3..81f973e285 100644 --- a/pkg/discovery/memory/memory.go +++ b/pkg/discovery/memory/memory.go @@ -1,4 +1,4 @@ -package memory +package memory // import "github.com/docker/docker/pkg/discovery/memory" import ( "sync" diff --git a/pkg/discovery/memory/memory_test.go b/pkg/discovery/memory/memory_test.go index c2da0a068e..1d937f0160 100644 --- a/pkg/discovery/memory/memory_test.go +++ b/pkg/discovery/memory/memory_test.go @@ -1,4 +1,4 @@ -package memory +package memory // import "github.com/docker/docker/pkg/discovery/memory" import ( "testing" diff --git a/pkg/discovery/nodes/nodes.go b/pkg/discovery/nodes/nodes.go index c0e3c07b22..b1d45aa2e6 100644 --- a/pkg/discovery/nodes/nodes.go +++ b/pkg/discovery/nodes/nodes.go @@ -1,4 +1,4 @@ -package nodes +package nodes // import "github.com/docker/docker/pkg/discovery/nodes" import ( "fmt" diff --git a/pkg/discovery/nodes/nodes_test.go b/pkg/discovery/nodes/nodes_test.go index e26568cf54..f9b43ab00b 100644 --- a/pkg/discovery/nodes/nodes_test.go +++ b/pkg/discovery/nodes/nodes_test.go @@ -1,4 +1,4 @@ -package nodes +package nodes // import "github.com/docker/docker/pkg/discovery/nodes" import ( "testing" diff --git a/pkg/dmesg/dmesg_linux.go b/pkg/dmesg/dmesg_linux.go index 2fb494e1bf..bc71b5b31f 100644 --- a/pkg/dmesg/dmesg_linux.go +++ b/pkg/dmesg/dmesg_linux.go @@ -1,4 +1,4 @@ -package dmesg +package dmesg // import "github.com/docker/docker/pkg/dmesg" import ( "unsafe" diff --git a/pkg/dmesg/dmesg_linux_test.go b/pkg/dmesg/dmesg_linux_test.go index c5028aac1d..cc20ff9165 100644 --- a/pkg/dmesg/dmesg_linux_test.go +++ b/pkg/dmesg/dmesg_linux_test.go @@ -1,4 +1,4 @@ -package dmesg +package dmesg // import "github.com/docker/docker/pkg/dmesg" import ( "testing" diff --git a/pkg/filenotify/filenotify.go b/pkg/filenotify/filenotify.go index 7a81cbda95..8b6cb56f17 100644 --- a/pkg/filenotify/filenotify.go +++ b/pkg/filenotify/filenotify.go @@ -1,7 +1,7 @@ // Package filenotify provides a mechanism for watching file(s) for changes. // Generally leans on fsnotify, but provides a poll-based notifier which fsnotify does not support. // These are wrapped up in a common interface so that either can be used interchangeably in your code. -package filenotify +package filenotify // import "github.com/docker/docker/pkg/filenotify" import "github.com/fsnotify/fsnotify" diff --git a/pkg/filenotify/fsnotify.go b/pkg/filenotify/fsnotify.go index 2614e05d31..5a737d6530 100644 --- a/pkg/filenotify/fsnotify.go +++ b/pkg/filenotify/fsnotify.go @@ -1,4 +1,4 @@ -package filenotify +package filenotify // import "github.com/docker/docker/pkg/filenotify" import "github.com/fsnotify/fsnotify" diff --git a/pkg/filenotify/poller.go b/pkg/filenotify/poller.go index 1dc9482e02..22f1897034 100644 --- a/pkg/filenotify/poller.go +++ b/pkg/filenotify/poller.go @@ -1,4 +1,4 @@ -package filenotify +package filenotify // import "github.com/docker/docker/pkg/filenotify" import ( "errors" diff --git a/pkg/filenotify/poller_test.go b/pkg/filenotify/poller_test.go index d854201991..a46b60d94f 100644 --- a/pkg/filenotify/poller_test.go +++ b/pkg/filenotify/poller_test.go @@ -1,4 +1,4 @@ -package filenotify +package filenotify // import "github.com/docker/docker/pkg/filenotify" import ( "fmt" diff --git a/pkg/fileutils/fileutils.go b/pkg/fileutils/fileutils.go index a129e654ea..88e0f2834b 100644 --- a/pkg/fileutils/fileutils.go +++ b/pkg/fileutils/fileutils.go @@ -1,4 +1,4 @@ -package fileutils +package fileutils // import "github.com/docker/docker/pkg/fileutils" import ( "errors" diff --git a/pkg/fileutils/fileutils_darwin.go b/pkg/fileutils/fileutils_darwin.go index ccd648fac3..e40cc271b3 100644 --- a/pkg/fileutils/fileutils_darwin.go +++ b/pkg/fileutils/fileutils_darwin.go @@ -1,4 +1,4 @@ -package fileutils +package fileutils // import "github.com/docker/docker/pkg/fileutils" import ( "os" diff --git a/pkg/fileutils/fileutils_test.go b/pkg/fileutils/fileutils_test.go index 2df5bdd913..0a648d1466 100644 --- a/pkg/fileutils/fileutils_test.go +++ b/pkg/fileutils/fileutils_test.go @@ -1,4 +1,4 @@ -package fileutils +package fileutils // import "github.com/docker/docker/pkg/fileutils" import ( "fmt" diff --git a/pkg/fileutils/fileutils_unix.go b/pkg/fileutils/fileutils_unix.go index 9e0e97bd64..565396f1c7 100644 --- a/pkg/fileutils/fileutils_unix.go +++ b/pkg/fileutils/fileutils_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd -package fileutils +package fileutils // import "github.com/docker/docker/pkg/fileutils" import ( "fmt" diff --git a/pkg/fileutils/fileutils_windows.go b/pkg/fileutils/fileutils_windows.go index 5ec21cace5..3f1ebb6567 100644 --- a/pkg/fileutils/fileutils_windows.go +++ b/pkg/fileutils/fileutils_windows.go @@ -1,4 +1,4 @@ -package fileutils +package fileutils // import "github.com/docker/docker/pkg/fileutils" // GetTotalUsedFds Returns the number of used File Descriptors. Not supported // on Windows. diff --git a/pkg/fsutils/fsutils_linux.go b/pkg/fsutils/fsutils_linux.go index 7596259458..104211adea 100644 --- a/pkg/fsutils/fsutils_linux.go +++ b/pkg/fsutils/fsutils_linux.go @@ -1,4 +1,4 @@ -package fsutils +package fsutils // import "github.com/docker/docker/pkg/fsutils" import ( "fmt" diff --git a/pkg/fsutils/fsutils_linux_test.go b/pkg/fsutils/fsutils_linux_test.go index 816752e418..4e5a78b519 100644 --- a/pkg/fsutils/fsutils_linux_test.go +++ b/pkg/fsutils/fsutils_linux_test.go @@ -1,6 +1,6 @@ // +build linux -package fsutils +package fsutils // import "github.com/docker/docker/pkg/fsutils" import ( "io/ioutil" diff --git a/pkg/homedir/homedir_linux.go b/pkg/homedir/homedir_linux.go index a7cd2e1039..ee15ed52b1 100644 --- a/pkg/homedir/homedir_linux.go +++ b/pkg/homedir/homedir_linux.go @@ -1,4 +1,4 @@ -package homedir +package homedir // import "github.com/docker/docker/pkg/homedir" import ( "os" diff --git a/pkg/homedir/homedir_others.go b/pkg/homedir/homedir_others.go index 6b96b856f6..75ada2fe54 100644 --- a/pkg/homedir/homedir_others.go +++ b/pkg/homedir/homedir_others.go @@ -1,6 +1,6 @@ // +build !linux -package homedir +package homedir // import "github.com/docker/docker/pkg/homedir" import ( "errors" diff --git a/pkg/homedir/homedir_test.go b/pkg/homedir/homedir_test.go index 7a95cb2bd7..49c42224fd 100644 --- a/pkg/homedir/homedir_test.go +++ b/pkg/homedir/homedir_test.go @@ -1,4 +1,4 @@ -package homedir +package homedir // import "github.com/docker/docker/pkg/homedir" import ( "path/filepath" diff --git a/pkg/homedir/homedir_unix.go b/pkg/homedir/homedir_unix.go index f2a20ea8f8..d85e124488 100644 --- a/pkg/homedir/homedir_unix.go +++ b/pkg/homedir/homedir_unix.go @@ -1,6 +1,6 @@ // +build !windows -package homedir +package homedir // import "github.com/docker/docker/pkg/homedir" import ( "os" diff --git a/pkg/homedir/homedir_windows.go b/pkg/homedir/homedir_windows.go index fafdb2bbf9..2f81813b28 100644 --- a/pkg/homedir/homedir_windows.go +++ b/pkg/homedir/homedir_windows.go @@ -1,4 +1,4 @@ -package homedir +package homedir // import "github.com/docker/docker/pkg/homedir" import ( "os" diff --git a/pkg/idtools/idtools.go b/pkg/idtools/idtools.go index 6108ae3f43..e2b493158c 100644 --- a/pkg/idtools/idtools.go +++ b/pkg/idtools/idtools.go @@ -1,4 +1,4 @@ -package idtools +package idtools // import "github.com/docker/docker/pkg/idtools" import ( "bufio" diff --git a/pkg/idtools/idtools_unix.go b/pkg/idtools/idtools_unix.go index aedf8ad343..1d87ea3bcb 100644 --- a/pkg/idtools/idtools_unix.go +++ b/pkg/idtools/idtools_unix.go @@ -1,6 +1,6 @@ // +build !windows -package idtools +package idtools // import "github.com/docker/docker/pkg/idtools" import ( "bytes" diff --git a/pkg/idtools/idtools_unix_test.go b/pkg/idtools/idtools_unix_test.go index 396ff202d5..931e332bb9 100644 --- a/pkg/idtools/idtools_unix_test.go +++ b/pkg/idtools/idtools_unix_test.go @@ -1,6 +1,6 @@ // +build !windows -package idtools +package idtools // import "github.com/docker/docker/pkg/idtools" import ( "fmt" diff --git a/pkg/idtools/idtools_windows.go b/pkg/idtools/idtools_windows.go index ec49177702..d72cc28929 100644 --- a/pkg/idtools/idtools_windows.go +++ b/pkg/idtools/idtools_windows.go @@ -1,4 +1,4 @@ -package idtools +package idtools // import "github.com/docker/docker/pkg/idtools" import ( "os" diff --git a/pkg/idtools/usergroupadd_linux.go b/pkg/idtools/usergroupadd_linux.go index 9da7975e2c..6272c5a404 100644 --- a/pkg/idtools/usergroupadd_linux.go +++ b/pkg/idtools/usergroupadd_linux.go @@ -1,4 +1,4 @@ -package idtools +package idtools // import "github.com/docker/docker/pkg/idtools" import ( "fmt" diff --git a/pkg/idtools/usergroupadd_unsupported.go b/pkg/idtools/usergroupadd_unsupported.go index d98b354cbd..e7c4d63118 100644 --- a/pkg/idtools/usergroupadd_unsupported.go +++ b/pkg/idtools/usergroupadd_unsupported.go @@ -1,6 +1,6 @@ // +build !linux -package idtools +package idtools // import "github.com/docker/docker/pkg/idtools" import "fmt" diff --git a/pkg/idtools/utils_unix.go b/pkg/idtools/utils_unix.go index 9703ecbd9d..903ac4501b 100644 --- a/pkg/idtools/utils_unix.go +++ b/pkg/idtools/utils_unix.go @@ -1,6 +1,6 @@ // +build !windows -package idtools +package idtools // import "github.com/docker/docker/pkg/idtools" import ( "fmt" diff --git a/pkg/ioutils/buffer.go b/pkg/ioutils/buffer.go index 3d737b3e19..466f79294b 100644 --- a/pkg/ioutils/buffer.go +++ b/pkg/ioutils/buffer.go @@ -1,4 +1,4 @@ -package ioutils +package ioutils // import "github.com/docker/docker/pkg/ioutils" import ( "errors" diff --git a/pkg/ioutils/buffer_test.go b/pkg/ioutils/buffer_test.go index f687124386..b8887bfde0 100644 --- a/pkg/ioutils/buffer_test.go +++ b/pkg/ioutils/buffer_test.go @@ -1,4 +1,4 @@ -package ioutils +package ioutils // import "github.com/docker/docker/pkg/ioutils" import ( "bytes" diff --git a/pkg/ioutils/bytespipe.go b/pkg/ioutils/bytespipe.go index 72a04f3491..d4bbf3c9dc 100644 --- a/pkg/ioutils/bytespipe.go +++ b/pkg/ioutils/bytespipe.go @@ -1,4 +1,4 @@ -package ioutils +package ioutils // import "github.com/docker/docker/pkg/ioutils" import ( "errors" diff --git a/pkg/ioutils/bytespipe_test.go b/pkg/ioutils/bytespipe_test.go index 300fb5f6d5..9101f20a21 100644 --- a/pkg/ioutils/bytespipe_test.go +++ b/pkg/ioutils/bytespipe_test.go @@ -1,4 +1,4 @@ -package ioutils +package ioutils // import "github.com/docker/docker/pkg/ioutils" import ( "crypto/sha1" diff --git a/pkg/ioutils/fswriters.go b/pkg/ioutils/fswriters.go index a56c462651..534d66ac26 100644 --- a/pkg/ioutils/fswriters.go +++ b/pkg/ioutils/fswriters.go @@ -1,4 +1,4 @@ -package ioutils +package ioutils // import "github.com/docker/docker/pkg/ioutils" import ( "io" diff --git a/pkg/ioutils/fswriters_test.go b/pkg/ioutils/fswriters_test.go index 5d286005d2..b283045de5 100644 --- a/pkg/ioutils/fswriters_test.go +++ b/pkg/ioutils/fswriters_test.go @@ -1,4 +1,4 @@ -package ioutils +package ioutils // import "github.com/docker/docker/pkg/ioutils" import ( "bytes" diff --git a/pkg/ioutils/readers.go b/pkg/ioutils/readers.go index 168fa1d2d0..72f7f2319f 100644 --- a/pkg/ioutils/readers.go +++ b/pkg/ioutils/readers.go @@ -1,4 +1,4 @@ -package ioutils +package ioutils // import "github.com/docker/docker/pkg/ioutils" import ( "crypto/sha256" diff --git a/pkg/ioutils/readers_test.go b/pkg/ioutils/readers_test.go index 86e50d38f9..e322fdf840 100644 --- a/pkg/ioutils/readers_test.go +++ b/pkg/ioutils/readers_test.go @@ -1,4 +1,4 @@ -package ioutils +package ioutils // import "github.com/docker/docker/pkg/ioutils" import ( "fmt" diff --git a/pkg/ioutils/temp_unix.go b/pkg/ioutils/temp_unix.go index 1539ad21b5..dc894f9131 100644 --- a/pkg/ioutils/temp_unix.go +++ b/pkg/ioutils/temp_unix.go @@ -1,6 +1,6 @@ // +build !windows -package ioutils +package ioutils // import "github.com/docker/docker/pkg/ioutils" import "io/ioutil" diff --git a/pkg/ioutils/temp_windows.go b/pkg/ioutils/temp_windows.go index fb14c95489..ecaba2e36d 100644 --- a/pkg/ioutils/temp_windows.go +++ b/pkg/ioutils/temp_windows.go @@ -1,4 +1,4 @@ -package ioutils +package ioutils // import "github.com/docker/docker/pkg/ioutils" import ( "io/ioutil" diff --git a/pkg/ioutils/writeflusher.go b/pkg/ioutils/writeflusher.go index 52a4901ade..91b8d18266 100644 --- a/pkg/ioutils/writeflusher.go +++ b/pkg/ioutils/writeflusher.go @@ -1,4 +1,4 @@ -package ioutils +package ioutils // import "github.com/docker/docker/pkg/ioutils" import ( "io" diff --git a/pkg/ioutils/writers.go b/pkg/ioutils/writers.go index ccc7f9c23e..61c679497d 100644 --- a/pkg/ioutils/writers.go +++ b/pkg/ioutils/writers.go @@ -1,4 +1,4 @@ -package ioutils +package ioutils // import "github.com/docker/docker/pkg/ioutils" import "io" diff --git a/pkg/ioutils/writers_test.go b/pkg/ioutils/writers_test.go index 564b1cd4f5..94d446f9a9 100644 --- a/pkg/ioutils/writers_test.go +++ b/pkg/ioutils/writers_test.go @@ -1,4 +1,4 @@ -package ioutils +package ioutils // import "github.com/docker/docker/pkg/ioutils" import ( "bytes" diff --git a/pkg/jsonmessage/jsonmessage.go b/pkg/jsonmessage/jsonmessage.go index 6cfa464830..368f128949 100644 --- a/pkg/jsonmessage/jsonmessage.go +++ b/pkg/jsonmessage/jsonmessage.go @@ -1,4 +1,4 @@ -package jsonmessage +package jsonmessage // import "github.com/docker/docker/pkg/jsonmessage" import ( "encoding/json" diff --git a/pkg/jsonmessage/jsonmessage_test.go b/pkg/jsonmessage/jsonmessage_test.go index 9740bcd98d..2bad8a2025 100644 --- a/pkg/jsonmessage/jsonmessage_test.go +++ b/pkg/jsonmessage/jsonmessage_test.go @@ -1,4 +1,4 @@ -package jsonmessage +package jsonmessage // import "github.com/docker/docker/pkg/jsonmessage" import ( "bytes" diff --git a/pkg/locker/locker.go b/pkg/locker/locker.go index 0b22ddfab8..dbd47fc465 100644 --- a/pkg/locker/locker.go +++ b/pkg/locker/locker.go @@ -11,7 +11,7 @@ created. Lock references are automatically cleaned up on `Unlock` if nothing else is waiting for the lock. */ -package locker +package locker // import "github.com/docker/docker/pkg/locker" import ( "errors" diff --git a/pkg/locker/locker_test.go b/pkg/locker/locker_test.go index 39633c93f0..2b0a8a55d6 100644 --- a/pkg/locker/locker_test.go +++ b/pkg/locker/locker_test.go @@ -1,4 +1,4 @@ -package locker +package locker // import "github.com/docker/docker/pkg/locker" import ( "math/rand" diff --git a/pkg/longpath/longpath.go b/pkg/longpath/longpath.go index 9b15bfff4c..4177affba2 100644 --- a/pkg/longpath/longpath.go +++ b/pkg/longpath/longpath.go @@ -2,7 +2,7 @@ // in Windows, which are expected to be prepended with `\\?\` and followed by either // a drive letter, a UNC server\share, or a volume identifier. -package longpath +package longpath // import "github.com/docker/docker/pkg/longpath" import ( "strings" diff --git a/pkg/longpath/longpath_test.go b/pkg/longpath/longpath_test.go index 01865eff09..2bcd008e10 100644 --- a/pkg/longpath/longpath_test.go +++ b/pkg/longpath/longpath_test.go @@ -1,4 +1,4 @@ -package longpath +package longpath // import "github.com/docker/docker/pkg/longpath" import ( "strings" diff --git a/pkg/loopback/attach_loopback.go b/pkg/loopback/attach_loopback.go index 27326d7fe5..94feb8fc7d 100644 --- a/pkg/loopback/attach_loopback.go +++ b/pkg/loopback/attach_loopback.go @@ -1,6 +1,6 @@ // +build linux,cgo -package loopback +package loopback // import "github.com/docker/docker/pkg/loopback" import ( "errors" diff --git a/pkg/loopback/ioctl.go b/pkg/loopback/ioctl.go index 84fcea669c..612fd00abe 100644 --- a/pkg/loopback/ioctl.go +++ b/pkg/loopback/ioctl.go @@ -1,6 +1,6 @@ // +build linux,cgo -package loopback +package loopback // import "github.com/docker/docker/pkg/loopback" import ( "unsafe" diff --git a/pkg/loopback/loop_wrapper.go b/pkg/loopback/loop_wrapper.go index a50de7f07a..7206bfb950 100644 --- a/pkg/loopback/loop_wrapper.go +++ b/pkg/loopback/loop_wrapper.go @@ -1,6 +1,6 @@ // +build linux,cgo -package loopback +package loopback // import "github.com/docker/docker/pkg/loopback" /* #include // FIXME: present only for defines, maybe we can remove it? diff --git a/pkg/loopback/loopback.go b/pkg/loopback/loopback.go index c620c63336..086655bc1a 100644 --- a/pkg/loopback/loopback.go +++ b/pkg/loopback/loopback.go @@ -1,6 +1,6 @@ // +build linux,cgo -package loopback +package loopback // import "github.com/docker/docker/pkg/loopback" import ( "fmt" diff --git a/pkg/mount/flags.go b/pkg/mount/flags.go index 607dbed43a..272363b685 100644 --- a/pkg/mount/flags.go +++ b/pkg/mount/flags.go @@ -1,4 +1,4 @@ -package mount +package mount // import "github.com/docker/docker/pkg/mount" import ( "fmt" diff --git a/pkg/mount/flags_freebsd.go b/pkg/mount/flags_freebsd.go index 5f76f331b6..ef35ef9059 100644 --- a/pkg/mount/flags_freebsd.go +++ b/pkg/mount/flags_freebsd.go @@ -1,6 +1,6 @@ // +build freebsd,cgo -package mount +package mount // import "github.com/docker/docker/pkg/mount" /* #include diff --git a/pkg/mount/flags_linux.go b/pkg/mount/flags_linux.go index 0425d0dd63..a1b199a31a 100644 --- a/pkg/mount/flags_linux.go +++ b/pkg/mount/flags_linux.go @@ -1,4 +1,4 @@ -package mount +package mount // import "github.com/docker/docker/pkg/mount" import ( "golang.org/x/sys/unix" diff --git a/pkg/mount/flags_unsupported.go b/pkg/mount/flags_unsupported.go index 43d5e339f0..cc6c475908 100644 --- a/pkg/mount/flags_unsupported.go +++ b/pkg/mount/flags_unsupported.go @@ -1,6 +1,6 @@ // +build !linux,!freebsd freebsd,!cgo -package mount +package mount // import "github.com/docker/docker/pkg/mount" // These flags are unsupported. const ( diff --git a/pkg/mount/mount.go b/pkg/mount/mount.go index 0d02a575f6..8ff4925d73 100644 --- a/pkg/mount/mount.go +++ b/pkg/mount/mount.go @@ -1,4 +1,4 @@ -package mount +package mount // import "github.com/docker/docker/pkg/mount" import ( "sort" diff --git a/pkg/mount/mount_unix_test.go b/pkg/mount/mount_unix_test.go index 90fa348b22..f3333d5b31 100644 --- a/pkg/mount/mount_unix_test.go +++ b/pkg/mount/mount_unix_test.go @@ -1,6 +1,6 @@ // +build !windows -package mount +package mount // import "github.com/docker/docker/pkg/mount" import ( "os" diff --git a/pkg/mount/mounter_freebsd.go b/pkg/mount/mounter_freebsd.go index 814896cc9e..b6ab83a230 100644 --- a/pkg/mount/mounter_freebsd.go +++ b/pkg/mount/mounter_freebsd.go @@ -1,4 +1,4 @@ -package mount +package mount // import "github.com/docker/docker/pkg/mount" /* #include diff --git a/pkg/mount/mounter_linux.go b/pkg/mount/mounter_linux.go index 39c36d472a..631daf10a5 100644 --- a/pkg/mount/mounter_linux.go +++ b/pkg/mount/mounter_linux.go @@ -1,4 +1,4 @@ -package mount +package mount // import "github.com/docker/docker/pkg/mount" import ( "golang.org/x/sys/unix" diff --git a/pkg/mount/mounter_linux_test.go b/pkg/mount/mounter_linux_test.go index f02bd13786..ac858e269b 100644 --- a/pkg/mount/mounter_linux_test.go +++ b/pkg/mount/mounter_linux_test.go @@ -1,6 +1,6 @@ // +build linux -package mount +package mount // import "github.com/docker/docker/pkg/mount" import ( "fmt" diff --git a/pkg/mount/mounter_unsupported.go b/pkg/mount/mounter_unsupported.go index eb93365eb7..1428dffa52 100644 --- a/pkg/mount/mounter_unsupported.go +++ b/pkg/mount/mounter_unsupported.go @@ -1,6 +1,6 @@ // +build !linux,!freebsd freebsd,!cgo -package mount +package mount // import "github.com/docker/docker/pkg/mount" func mount(device, target, mType string, flag uintptr, data string) error { panic("Not implemented") diff --git a/pkg/mount/mountinfo.go b/pkg/mount/mountinfo.go index ff4cc1d86b..05803938af 100644 --- a/pkg/mount/mountinfo.go +++ b/pkg/mount/mountinfo.go @@ -1,4 +1,4 @@ -package mount +package mount // import "github.com/docker/docker/pkg/mount" // Info reveals information about a particular mounted filesystem. This // struct is populated from the content in the /proc//mountinfo file. diff --git a/pkg/mount/mountinfo_freebsd.go b/pkg/mount/mountinfo_freebsd.go index 4f32edcd90..b86f4a97f6 100644 --- a/pkg/mount/mountinfo_freebsd.go +++ b/pkg/mount/mountinfo_freebsd.go @@ -1,4 +1,4 @@ -package mount +package mount // import "github.com/docker/docker/pkg/mount" /* #include diff --git a/pkg/mount/mountinfo_linux.go b/pkg/mount/mountinfo_linux.go index dde889e7bf..4afa8d538d 100644 --- a/pkg/mount/mountinfo_linux.go +++ b/pkg/mount/mountinfo_linux.go @@ -1,4 +1,4 @@ -package mount +package mount // import "github.com/docker/docker/pkg/mount" import ( "bufio" diff --git a/pkg/mount/mountinfo_linux_test.go b/pkg/mount/mountinfo_linux_test.go index bd100e1d49..771b353823 100644 --- a/pkg/mount/mountinfo_linux_test.go +++ b/pkg/mount/mountinfo_linux_test.go @@ -1,6 +1,6 @@ // +build linux -package mount +package mount // import "github.com/docker/docker/pkg/mount" import ( "bytes" diff --git a/pkg/mount/mountinfo_unsupported.go b/pkg/mount/mountinfo_unsupported.go index b8d9aa5c73..2ecc8baed8 100644 --- a/pkg/mount/mountinfo_unsupported.go +++ b/pkg/mount/mountinfo_unsupported.go @@ -1,6 +1,6 @@ // +build !windows,!linux,!freebsd freebsd,!cgo -package mount +package mount // import "github.com/docker/docker/pkg/mount" import ( "fmt" diff --git a/pkg/mount/mountinfo_windows.go b/pkg/mount/mountinfo_windows.go index dab8a37ed0..7ecba7c13a 100644 --- a/pkg/mount/mountinfo_windows.go +++ b/pkg/mount/mountinfo_windows.go @@ -1,4 +1,4 @@ -package mount +package mount // import "github.com/docker/docker/pkg/mount" func parseMountTable() ([]*Info, error) { // Do NOT return an error! diff --git a/pkg/mount/sharedsubtree_linux.go b/pkg/mount/sharedsubtree_linux.go index f3c13e5a16..538f6637a0 100644 --- a/pkg/mount/sharedsubtree_linux.go +++ b/pkg/mount/sharedsubtree_linux.go @@ -1,4 +1,4 @@ -package mount +package mount // import "github.com/docker/docker/pkg/mount" // MakeShared ensures a mounted filesystem has the SHARED mount option enabled. // See the supported options in flags.go for further reference. diff --git a/pkg/mount/sharedsubtree_linux_test.go b/pkg/mount/sharedsubtree_linux_test.go index f25ab19fed..0cb2b959cd 100644 --- a/pkg/mount/sharedsubtree_linux_test.go +++ b/pkg/mount/sharedsubtree_linux_test.go @@ -1,6 +1,6 @@ // +build linux -package mount +package mount // import "github.com/docker/docker/pkg/mount" import ( "os" diff --git a/pkg/namesgenerator/names-generator.go b/pkg/namesgenerator/names-generator.go index d52d628db9..d1da8539bd 100644 --- a/pkg/namesgenerator/names-generator.go +++ b/pkg/namesgenerator/names-generator.go @@ -1,4 +1,4 @@ -package namesgenerator +package namesgenerator // import "github.com/docker/docker/pkg/namesgenerator" import ( "fmt" diff --git a/pkg/namesgenerator/names-generator_test.go b/pkg/namesgenerator/names-generator_test.go index d1a94977d7..6ee31e9c33 100644 --- a/pkg/namesgenerator/names-generator_test.go +++ b/pkg/namesgenerator/names-generator_test.go @@ -1,4 +1,4 @@ -package namesgenerator +package namesgenerator // import "github.com/docker/docker/pkg/namesgenerator" import ( "strings" diff --git a/pkg/parsers/kernel/kernel.go b/pkg/parsers/kernel/kernel.go index 7738fc7411..94780ef610 100644 --- a/pkg/parsers/kernel/kernel.go +++ b/pkg/parsers/kernel/kernel.go @@ -2,7 +2,7 @@ // Package kernel provides helper function to get, parse and compare kernel // versions for different platforms. -package kernel +package kernel // import "github.com/docker/docker/pkg/parsers/kernel" import ( "errors" diff --git a/pkg/parsers/kernel/kernel_darwin.go b/pkg/parsers/kernel/kernel_darwin.go index 71f205b285..6e599eebcc 100644 --- a/pkg/parsers/kernel/kernel_darwin.go +++ b/pkg/parsers/kernel/kernel_darwin.go @@ -2,7 +2,7 @@ // Package kernel provides helper function to get, parse and compare kernel // versions for different platforms. -package kernel +package kernel // import "github.com/docker/docker/pkg/parsers/kernel" import ( "fmt" diff --git a/pkg/parsers/kernel/kernel_unix.go b/pkg/parsers/kernel/kernel_unix.go index 767ede2887..8a9aa31225 100644 --- a/pkg/parsers/kernel/kernel_unix.go +++ b/pkg/parsers/kernel/kernel_unix.go @@ -2,7 +2,7 @@ // Package kernel provides helper function to get, parse and compare kernel // versions for different platforms. -package kernel +package kernel // import "github.com/docker/docker/pkg/parsers/kernel" import ( "bytes" diff --git a/pkg/parsers/kernel/kernel_unix_test.go b/pkg/parsers/kernel/kernel_unix_test.go index dc8c0e307b..2f36490c53 100644 --- a/pkg/parsers/kernel/kernel_unix_test.go +++ b/pkg/parsers/kernel/kernel_unix_test.go @@ -1,6 +1,6 @@ // +build !windows -package kernel +package kernel // import "github.com/docker/docker/pkg/parsers/kernel" import ( "fmt" diff --git a/pkg/parsers/kernel/kernel_windows.go b/pkg/parsers/kernel/kernel_windows.go index 93620eeffc..d54f032cb0 100644 --- a/pkg/parsers/kernel/kernel_windows.go +++ b/pkg/parsers/kernel/kernel_windows.go @@ -1,4 +1,4 @@ -package kernel +package kernel // import "github.com/docker/docker/pkg/parsers/kernel" import ( "fmt" diff --git a/pkg/parsers/kernel/uname_linux.go b/pkg/parsers/kernel/uname_linux.go index e913fad001..212ff4502b 100644 --- a/pkg/parsers/kernel/uname_linux.go +++ b/pkg/parsers/kernel/uname_linux.go @@ -1,4 +1,4 @@ -package kernel +package kernel // import "github.com/docker/docker/pkg/parsers/kernel" import "golang.org/x/sys/unix" diff --git a/pkg/parsers/kernel/uname_solaris.go b/pkg/parsers/kernel/uname_solaris.go index 49370bd3dd..b2139b60e8 100644 --- a/pkg/parsers/kernel/uname_solaris.go +++ b/pkg/parsers/kernel/uname_solaris.go @@ -1,4 +1,4 @@ -package kernel +package kernel // import "github.com/docker/docker/pkg/parsers/kernel" import ( "golang.org/x/sys/unix" diff --git a/pkg/parsers/kernel/uname_unsupported.go b/pkg/parsers/kernel/uname_unsupported.go index 79c66b3228..97906e4cd7 100644 --- a/pkg/parsers/kernel/uname_unsupported.go +++ b/pkg/parsers/kernel/uname_unsupported.go @@ -1,6 +1,6 @@ // +build !linux -package kernel +package kernel // import "github.com/docker/docker/pkg/parsers/kernel" import ( "errors" diff --git a/pkg/parsers/operatingsystem/operatingsystem_linux.go b/pkg/parsers/operatingsystem/operatingsystem_linux.go index e04a3499af..b251d6aed6 100644 --- a/pkg/parsers/operatingsystem/operatingsystem_linux.go +++ b/pkg/parsers/operatingsystem/operatingsystem_linux.go @@ -1,6 +1,6 @@ // Package operatingsystem provides helper function to get the operating system // name for different platforms. -package operatingsystem +package operatingsystem // import "github.com/docker/docker/pkg/parsers/operatingsystem" import ( "bufio" diff --git a/pkg/parsers/operatingsystem/operatingsystem_unix.go b/pkg/parsers/operatingsystem/operatingsystem_unix.go index bc91c3c533..f4792d37d5 100644 --- a/pkg/parsers/operatingsystem/operatingsystem_unix.go +++ b/pkg/parsers/operatingsystem/operatingsystem_unix.go @@ -1,6 +1,6 @@ // +build freebsd darwin -package operatingsystem +package operatingsystem // import "github.com/docker/docker/pkg/parsers/operatingsystem" import ( "errors" diff --git a/pkg/parsers/operatingsystem/operatingsystem_unix_test.go b/pkg/parsers/operatingsystem/operatingsystem_unix_test.go index e7120c65c4..d10ed4cdcd 100644 --- a/pkg/parsers/operatingsystem/operatingsystem_unix_test.go +++ b/pkg/parsers/operatingsystem/operatingsystem_unix_test.go @@ -1,6 +1,6 @@ // +build linux freebsd -package operatingsystem +package operatingsystem // import "github.com/docker/docker/pkg/parsers/operatingsystem" import ( "io/ioutil" diff --git a/pkg/parsers/operatingsystem/operatingsystem_windows.go b/pkg/parsers/operatingsystem/operatingsystem_windows.go index 5d8b42cc36..8104bf63ca 100644 --- a/pkg/parsers/operatingsystem/operatingsystem_windows.go +++ b/pkg/parsers/operatingsystem/operatingsystem_windows.go @@ -1,4 +1,4 @@ -package operatingsystem +package operatingsystem // import "github.com/docker/docker/pkg/parsers/operatingsystem" import ( "unsafe" diff --git a/pkg/parsers/parsers.go b/pkg/parsers/parsers.go index acc897168f..c4186a4c0a 100644 --- a/pkg/parsers/parsers.go +++ b/pkg/parsers/parsers.go @@ -1,7 +1,7 @@ // Package parsers provides helper functions to parse and validate different type // of string. It can be hosts, unix addresses, tcp addresses, filters, kernel // operating system versions. -package parsers +package parsers // import "github.com/docker/docker/pkg/parsers" import ( "fmt" diff --git a/pkg/parsers/parsers_test.go b/pkg/parsers/parsers_test.go index 7f19e90279..a70093f1c4 100644 --- a/pkg/parsers/parsers_test.go +++ b/pkg/parsers/parsers_test.go @@ -1,4 +1,4 @@ -package parsers +package parsers // import "github.com/docker/docker/pkg/parsers" import ( "reflect" diff --git a/pkg/pidfile/pidfile.go b/pkg/pidfile/pidfile.go index 0fc3997a11..0617a89e5f 100644 --- a/pkg/pidfile/pidfile.go +++ b/pkg/pidfile/pidfile.go @@ -1,7 +1,7 @@ // Package pidfile provides structure and helper functions to create and remove // PID file. A PID file is usually a file used to store the process ID of a // running process. -package pidfile +package pidfile // import "github.com/docker/docker/pkg/pidfile" import ( "fmt" diff --git a/pkg/pidfile/pidfile_darwin.go b/pkg/pidfile/pidfile_darwin.go index 2cd001a70a..92746aa7bf 100644 --- a/pkg/pidfile/pidfile_darwin.go +++ b/pkg/pidfile/pidfile_darwin.go @@ -1,6 +1,6 @@ // +build darwin -package pidfile +package pidfile // import "github.com/docker/docker/pkg/pidfile" import ( "golang.org/x/sys/unix" diff --git a/pkg/pidfile/pidfile_test.go b/pkg/pidfile/pidfile_test.go index 73e8af76db..cd9878e1e4 100644 --- a/pkg/pidfile/pidfile_test.go +++ b/pkg/pidfile/pidfile_test.go @@ -1,4 +1,4 @@ -package pidfile +package pidfile // import "github.com/docker/docker/pkg/pidfile" import ( "io/ioutil" diff --git a/pkg/pidfile/pidfile_unix.go b/pkg/pidfile/pidfile_unix.go index 1bf5221e3b..cc6696d211 100644 --- a/pkg/pidfile/pidfile_unix.go +++ b/pkg/pidfile/pidfile_unix.go @@ -1,6 +1,6 @@ // +build !windows,!darwin -package pidfile +package pidfile // import "github.com/docker/docker/pkg/pidfile" import ( "os" diff --git a/pkg/pidfile/pidfile_windows.go b/pkg/pidfile/pidfile_windows.go index 86850d465f..1c5e6cb654 100644 --- a/pkg/pidfile/pidfile_windows.go +++ b/pkg/pidfile/pidfile_windows.go @@ -1,4 +1,4 @@ -package pidfile +package pidfile // import "github.com/docker/docker/pkg/pidfile" import ( "golang.org/x/sys/windows" diff --git a/pkg/platform/architecture_linux.go b/pkg/platform/architecture_linux.go index 55c38b2748..a260a23f4f 100644 --- a/pkg/platform/architecture_linux.go +++ b/pkg/platform/architecture_linux.go @@ -1,6 +1,6 @@ // Package platform provides helper function to get the runtime architecture // for different platforms. -package platform +package platform // import "github.com/docker/docker/pkg/platform" import ( "bytes" diff --git a/pkg/platform/architecture_unix.go b/pkg/platform/architecture_unix.go index 8db908682d..d51f68698f 100644 --- a/pkg/platform/architecture_unix.go +++ b/pkg/platform/architecture_unix.go @@ -2,7 +2,7 @@ // Package platform provides helper function to get the runtime architecture // for different platforms. -package platform +package platform // import "github.com/docker/docker/pkg/platform" import ( "os/exec" diff --git a/pkg/platform/architecture_windows.go b/pkg/platform/architecture_windows.go index c5f684ddfa..a25f1bc516 100644 --- a/pkg/platform/architecture_windows.go +++ b/pkg/platform/architecture_windows.go @@ -1,4 +1,4 @@ -package platform +package platform // import "github.com/docker/docker/pkg/platform" import ( "fmt" diff --git a/pkg/platform/platform.go b/pkg/platform/platform.go index 2845c3c197..f6b02b734a 100644 --- a/pkg/platform/platform.go +++ b/pkg/platform/platform.go @@ -1,4 +1,4 @@ -package platform +package platform // import "github.com/docker/docker/pkg/platform" import ( "runtime" diff --git a/pkg/plugingetter/getter.go b/pkg/plugingetter/getter.go index b9ffa547a4..e0a3256779 100644 --- a/pkg/plugingetter/getter.go +++ b/pkg/plugingetter/getter.go @@ -1,4 +1,4 @@ -package plugingetter +package plugingetter // import "github.com/docker/docker/pkg/plugingetter" import ( "github.com/docker/docker/pkg/plugins" diff --git a/pkg/plugins/client.go b/pkg/plugins/client.go index 63bdc81ea1..0353305358 100644 --- a/pkg/plugins/client.go +++ b/pkg/plugins/client.go @@ -1,4 +1,4 @@ -package plugins +package plugins // import "github.com/docker/docker/pkg/plugins" import ( "bytes" diff --git a/pkg/plugins/client_test.go b/pkg/plugins/client_test.go index 7c519a2765..44dd0fa81c 100644 --- a/pkg/plugins/client_test.go +++ b/pkg/plugins/client_test.go @@ -1,4 +1,4 @@ -package plugins +package plugins // import "github.com/docker/docker/pkg/plugins" import ( "bytes" diff --git a/pkg/plugins/discovery.go b/pkg/plugins/discovery.go index b126876390..4b79bd29ad 100644 --- a/pkg/plugins/discovery.go +++ b/pkg/plugins/discovery.go @@ -1,4 +1,4 @@ -package plugins +package plugins // import "github.com/docker/docker/pkg/plugins" import ( "encoding/json" diff --git a/pkg/plugins/discovery_test.go b/pkg/plugins/discovery_test.go index 1a23faaead..28fda41bad 100644 --- a/pkg/plugins/discovery_test.go +++ b/pkg/plugins/discovery_test.go @@ -1,4 +1,4 @@ -package plugins +package plugins // import "github.com/docker/docker/pkg/plugins" import ( "io/ioutil" diff --git a/pkg/plugins/discovery_unix.go b/pkg/plugins/discovery_unix.go index 693a47e394..58058f2828 100644 --- a/pkg/plugins/discovery_unix.go +++ b/pkg/plugins/discovery_unix.go @@ -1,5 +1,5 @@ // +build !windows -package plugins +package plugins // import "github.com/docker/docker/pkg/plugins" var specsPaths = []string{"/etc/docker/plugins", "/usr/lib/docker/plugins"} diff --git a/pkg/plugins/discovery_unix_test.go b/pkg/plugins/discovery_unix_test.go index a78f0298d4..9212946b2e 100644 --- a/pkg/plugins/discovery_unix_test.go +++ b/pkg/plugins/discovery_unix_test.go @@ -1,6 +1,6 @@ // +build !windows -package plugins +package plugins // import "github.com/docker/docker/pkg/plugins" import ( "fmt" diff --git a/pkg/plugins/discovery_windows.go b/pkg/plugins/discovery_windows.go index d7c1fe4942..f0af3477f4 100644 --- a/pkg/plugins/discovery_windows.go +++ b/pkg/plugins/discovery_windows.go @@ -1,4 +1,4 @@ -package plugins +package plugins // import "github.com/docker/docker/pkg/plugins" import ( "os" diff --git a/pkg/plugins/errors.go b/pkg/plugins/errors.go index 7988471026..6735c304bf 100644 --- a/pkg/plugins/errors.go +++ b/pkg/plugins/errors.go @@ -1,4 +1,4 @@ -package plugins +package plugins // import "github.com/docker/docker/pkg/plugins" import ( "fmt" diff --git a/pkg/plugins/plugin_test.go b/pkg/plugins/plugin_test.go index 8341b09daf..1540a19a64 100644 --- a/pkg/plugins/plugin_test.go +++ b/pkg/plugins/plugin_test.go @@ -1,4 +1,4 @@ -package plugins +package plugins // import "github.com/docker/docker/pkg/plugins" import ( "bytes" diff --git a/pkg/plugins/pluginrpc-gen/fixtures/foo.go b/pkg/plugins/pluginrpc-gen/fixtures/foo.go index 4dd1d6dd24..d27e28ebef 100644 --- a/pkg/plugins/pluginrpc-gen/fixtures/foo.go +++ b/pkg/plugins/pluginrpc-gen/fixtures/foo.go @@ -1,4 +1,4 @@ -package foo +package foo // import "github.com/docker/docker/pkg/plugins/pluginrpc-gen/fixtures" import ( aliasedio "io" diff --git a/pkg/plugins/pluginrpc-gen/fixtures/otherfixture/spaceship.go b/pkg/plugins/pluginrpc-gen/fixtures/otherfixture/spaceship.go index 1937d1786c..c603f6778c 100644 --- a/pkg/plugins/pluginrpc-gen/fixtures/otherfixture/spaceship.go +++ b/pkg/plugins/pluginrpc-gen/fixtures/otherfixture/spaceship.go @@ -1,4 +1,4 @@ -package otherfixture +package otherfixture // import "github.com/docker/docker/pkg/plugins/pluginrpc-gen/fixtures/otherfixture" // Spaceship is a fixture for tests type Spaceship struct{} diff --git a/pkg/plugins/plugins.go b/pkg/plugins/plugins.go index f9033ed1bc..3ee4720a19 100644 --- a/pkg/plugins/plugins.go +++ b/pkg/plugins/plugins.go @@ -20,7 +20,7 @@ // if err != nil { // return fmt.Errorf("Error looking up volume plugin example: %v", err) // } -package plugins +package plugins // import "github.com/docker/docker/pkg/plugins" import ( "errors" diff --git a/pkg/plugins/plugins_unix.go b/pkg/plugins/plugins_unix.go index 02f1da69a1..9d8b51d205 100644 --- a/pkg/plugins/plugins_unix.go +++ b/pkg/plugins/plugins_unix.go @@ -1,6 +1,6 @@ // +build !windows -package plugins +package plugins // import "github.com/docker/docker/pkg/plugins" // BasePath returns the path to which all paths returned by the plugin are relative to. // For v1 plugins, this always returns the host's root directory. diff --git a/pkg/plugins/plugins_windows.go b/pkg/plugins/plugins_windows.go index 3c8d8feb83..c27b4c61e7 100644 --- a/pkg/plugins/plugins_windows.go +++ b/pkg/plugins/plugins_windows.go @@ -1,4 +1,4 @@ -package plugins +package plugins // import "github.com/docker/docker/pkg/plugins" // BasePath returns the path to which all paths returned by the plugin are relative to. // For Windows v1 plugins, this returns an empty string, since the plugin is already aware diff --git a/pkg/plugins/transport/http.go b/pkg/plugins/transport/http.go index 5be146af65..76d3bdb712 100644 --- a/pkg/plugins/transport/http.go +++ b/pkg/plugins/transport/http.go @@ -1,4 +1,4 @@ -package transport +package transport // import "github.com/docker/docker/pkg/plugins/transport" import ( "io" diff --git a/pkg/plugins/transport/http_test.go b/pkg/plugins/transport/http_test.go index b724fd0df0..2e48b0fe0a 100644 --- a/pkg/plugins/transport/http_test.go +++ b/pkg/plugins/transport/http_test.go @@ -1,4 +1,4 @@ -package transport +package transport // import "github.com/docker/docker/pkg/plugins/transport" import ( "io" diff --git a/pkg/plugins/transport/transport.go b/pkg/plugins/transport/transport.go index d7f1e2100c..9cb13335a8 100644 --- a/pkg/plugins/transport/transport.go +++ b/pkg/plugins/transport/transport.go @@ -1,4 +1,4 @@ -package transport +package transport // import "github.com/docker/docker/pkg/plugins/transport" import ( "io" diff --git a/pkg/pools/pools.go b/pkg/pools/pools.go index 6a111a3ba7..46339c282f 100644 --- a/pkg/pools/pools.go +++ b/pkg/pools/pools.go @@ -7,7 +7,7 @@ // // Utility functions which operate on pools should be added to this // package to allow them to be reused. -package pools +package pools // import "github.com/docker/docker/pkg/pools" import ( "bufio" diff --git a/pkg/pools/pools_test.go b/pkg/pools/pools_test.go index 544c499957..2dbea36ae0 100644 --- a/pkg/pools/pools_test.go +++ b/pkg/pools/pools_test.go @@ -1,4 +1,4 @@ -package pools +package pools // import "github.com/docker/docker/pkg/pools" import ( "bufio" diff --git a/pkg/progress/progress.go b/pkg/progress/progress.go index 7c3d3a5145..9aea591954 100644 --- a/pkg/progress/progress.go +++ b/pkg/progress/progress.go @@ -1,4 +1,4 @@ -package progress +package progress // import "github.com/docker/docker/pkg/progress" import ( "fmt" diff --git a/pkg/progress/progressreader.go b/pkg/progress/progressreader.go index 6b3927eecf..7ca07dc640 100644 --- a/pkg/progress/progressreader.go +++ b/pkg/progress/progressreader.go @@ -1,4 +1,4 @@ -package progress +package progress // import "github.com/docker/docker/pkg/progress" import ( "io" diff --git a/pkg/progress/progressreader_test.go b/pkg/progress/progressreader_test.go index 690e705968..e7081cc1f4 100644 --- a/pkg/progress/progressreader_test.go +++ b/pkg/progress/progressreader_test.go @@ -1,4 +1,4 @@ -package progress +package progress // import "github.com/docker/docker/pkg/progress" import ( "bytes" diff --git a/pkg/pubsub/publisher.go b/pkg/pubsub/publisher.go index 8e30d16ae5..76033ed9e4 100644 --- a/pkg/pubsub/publisher.go +++ b/pkg/pubsub/publisher.go @@ -1,4 +1,4 @@ -package pubsub +package pubsub // import "github.com/docker/docker/pkg/pubsub" import ( "sync" diff --git a/pkg/pubsub/publisher_test.go b/pkg/pubsub/publisher_test.go index d6b0a1d59a..37bd6ece9d 100644 --- a/pkg/pubsub/publisher_test.go +++ b/pkg/pubsub/publisher_test.go @@ -1,4 +1,4 @@ -package pubsub +package pubsub // import "github.com/docker/docker/pkg/pubsub" import ( "fmt" diff --git a/pkg/reexec/command_linux.go b/pkg/reexec/command_linux.go index d3f10615fc..efea71794f 100644 --- a/pkg/reexec/command_linux.go +++ b/pkg/reexec/command_linux.go @@ -1,4 +1,4 @@ -package reexec +package reexec // import "github.com/docker/docker/pkg/reexec" import ( "os/exec" diff --git a/pkg/reexec/command_unix.go b/pkg/reexec/command_unix.go index 55c0c97d96..ceaabbdeee 100644 --- a/pkg/reexec/command_unix.go +++ b/pkg/reexec/command_unix.go @@ -1,6 +1,6 @@ // +build freebsd darwin -package reexec +package reexec // import "github.com/docker/docker/pkg/reexec" import ( "os/exec" diff --git a/pkg/reexec/command_unsupported.go b/pkg/reexec/command_unsupported.go index 6f5e55d001..09fb4b2d29 100644 --- a/pkg/reexec/command_unsupported.go +++ b/pkg/reexec/command_unsupported.go @@ -1,6 +1,6 @@ // +build !linux,!windows,!freebsd,!darwin -package reexec +package reexec // import "github.com/docker/docker/pkg/reexec" import ( "os/exec" diff --git a/pkg/reexec/command_windows.go b/pkg/reexec/command_windows.go index c320876b79..438226890f 100644 --- a/pkg/reexec/command_windows.go +++ b/pkg/reexec/command_windows.go @@ -1,4 +1,4 @@ -package reexec +package reexec // import "github.com/docker/docker/pkg/reexec" import ( "os/exec" diff --git a/pkg/reexec/reexec.go b/pkg/reexec/reexec.go index c56671d919..f8ccddd599 100644 --- a/pkg/reexec/reexec.go +++ b/pkg/reexec/reexec.go @@ -1,4 +1,4 @@ -package reexec +package reexec // import "github.com/docker/docker/pkg/reexec" import ( "fmt" diff --git a/pkg/reexec/reexec_test.go b/pkg/reexec/reexec_test.go index 39e87a4a27..e6bbe9f9a0 100644 --- a/pkg/reexec/reexec_test.go +++ b/pkg/reexec/reexec_test.go @@ -1,4 +1,4 @@ -package reexec +package reexec // import "github.com/docker/docker/pkg/reexec" import ( "os" diff --git a/pkg/signal/signal.go b/pkg/signal/signal.go index 68bb77cf58..6a663091a1 100644 --- a/pkg/signal/signal.go +++ b/pkg/signal/signal.go @@ -1,6 +1,6 @@ // Package signal provides helper functions for dealing with signals across // various operating systems. -package signal +package signal // import "github.com/docker/docker/pkg/signal" import ( "fmt" diff --git a/pkg/signal/signal_darwin.go b/pkg/signal/signal_darwin.go index 946de87e94..ee5501e3d9 100644 --- a/pkg/signal/signal_darwin.go +++ b/pkg/signal/signal_darwin.go @@ -1,4 +1,4 @@ -package signal +package signal // import "github.com/docker/docker/pkg/signal" import ( "syscall" diff --git a/pkg/signal/signal_freebsd.go b/pkg/signal/signal_freebsd.go index 6b9569bb75..764f90e264 100644 --- a/pkg/signal/signal_freebsd.go +++ b/pkg/signal/signal_freebsd.go @@ -1,4 +1,4 @@ -package signal +package signal // import "github.com/docker/docker/pkg/signal" import ( "syscall" diff --git a/pkg/signal/signal_linux.go b/pkg/signal/signal_linux.go index 66c85c8e08..caed97c963 100644 --- a/pkg/signal/signal_linux.go +++ b/pkg/signal/signal_linux.go @@ -1,4 +1,4 @@ -package signal +package signal // import "github.com/docker/docker/pkg/signal" import ( "syscall" diff --git a/pkg/signal/signal_linux_test.go b/pkg/signal/signal_linux_test.go index 8dc913b4ed..d7e8da2523 100644 --- a/pkg/signal/signal_linux_test.go +++ b/pkg/signal/signal_linux_test.go @@ -1,6 +1,6 @@ // +build darwin linux -package signal +package signal // import "github.com/docker/docker/pkg/signal" import ( "os" diff --git a/pkg/signal/signal_test.go b/pkg/signal/signal_test.go index df02f5bed1..1add526d16 100644 --- a/pkg/signal/signal_test.go +++ b/pkg/signal/signal_test.go @@ -1,4 +1,4 @@ -package signal +package signal // import "github.com/docker/docker/pkg/signal" import ( "syscall" diff --git a/pkg/signal/signal_unix.go b/pkg/signal/signal_unix.go index 5d058fd56b..a2aa4248fa 100644 --- a/pkg/signal/signal_unix.go +++ b/pkg/signal/signal_unix.go @@ -1,6 +1,6 @@ // +build !windows -package signal +package signal // import "github.com/docker/docker/pkg/signal" import ( "syscall" diff --git a/pkg/signal/signal_unsupported.go b/pkg/signal/signal_unsupported.go index 161ba27397..1fd25a83c6 100644 --- a/pkg/signal/signal_unsupported.go +++ b/pkg/signal/signal_unsupported.go @@ -1,6 +1,6 @@ // +build !linux,!darwin,!freebsd,!windows -package signal +package signal // import "github.com/docker/docker/pkg/signal" import ( "syscall" diff --git a/pkg/signal/signal_windows.go b/pkg/signal/signal_windows.go index c84a63e821..65752f24aa 100644 --- a/pkg/signal/signal_windows.go +++ b/pkg/signal/signal_windows.go @@ -1,4 +1,4 @@ -package signal +package signal // import "github.com/docker/docker/pkg/signal" import ( "syscall" diff --git a/pkg/signal/trap.go b/pkg/signal/trap.go index 2884dfee32..2a6e69fb50 100644 --- a/pkg/signal/trap.go +++ b/pkg/signal/trap.go @@ -1,4 +1,4 @@ -package signal +package signal // import "github.com/docker/docker/pkg/signal" import ( "fmt" diff --git a/pkg/signal/trap_linux_test.go b/pkg/signal/trap_linux_test.go index 2622766b50..d32a4366f4 100644 --- a/pkg/signal/trap_linux_test.go +++ b/pkg/signal/trap_linux_test.go @@ -1,6 +1,6 @@ // +build linux -package signal +package signal // import "github.com/docker/docker/pkg/signal" import ( "fmt" diff --git a/pkg/stdcopy/stdcopy.go b/pkg/stdcopy/stdcopy.go index a018a203f3..3b1e18736d 100644 --- a/pkg/stdcopy/stdcopy.go +++ b/pkg/stdcopy/stdcopy.go @@ -1,4 +1,4 @@ -package stdcopy +package stdcopy // import "github.com/docker/docker/pkg/stdcopy" import ( "bytes" diff --git a/pkg/stdcopy/stdcopy_test.go b/pkg/stdcopy/stdcopy_test.go index 3f992fda6a..2ec0c320d7 100644 --- a/pkg/stdcopy/stdcopy_test.go +++ b/pkg/stdcopy/stdcopy_test.go @@ -1,4 +1,4 @@ -package stdcopy +package stdcopy // import "github.com/docker/docker/pkg/stdcopy" import ( "bytes" diff --git a/pkg/streamformatter/streamformatter.go b/pkg/streamformatter/streamformatter.go index c4f55755ec..2b5e713040 100644 --- a/pkg/streamformatter/streamformatter.go +++ b/pkg/streamformatter/streamformatter.go @@ -1,5 +1,5 @@ // Package streamformatter provides helper functions to format a stream. -package streamformatter +package streamformatter // import "github.com/docker/docker/pkg/streamformatter" import ( "encoding/json" diff --git a/pkg/streamformatter/streamformatter_test.go b/pkg/streamformatter/streamformatter_test.go index c5c70d7e16..7259c54df8 100644 --- a/pkg/streamformatter/streamformatter_test.go +++ b/pkg/streamformatter/streamformatter_test.go @@ -1,4 +1,4 @@ -package streamformatter +package streamformatter // import "github.com/docker/docker/pkg/streamformatter" import ( "bytes" diff --git a/pkg/streamformatter/streamwriter.go b/pkg/streamformatter/streamwriter.go index 141d12e20e..1473ed974a 100644 --- a/pkg/streamformatter/streamwriter.go +++ b/pkg/streamformatter/streamwriter.go @@ -1,4 +1,4 @@ -package streamformatter +package streamformatter // import "github.com/docker/docker/pkg/streamformatter" import ( "encoding/json" diff --git a/pkg/streamformatter/streamwriter_test.go b/pkg/streamformatter/streamwriter_test.go index a3c026a5c0..332d66414f 100644 --- a/pkg/streamformatter/streamwriter_test.go +++ b/pkg/streamformatter/streamwriter_test.go @@ -1,4 +1,4 @@ -package streamformatter +package streamformatter // import "github.com/docker/docker/pkg/streamformatter" import ( "bytes" diff --git a/pkg/stringid/stringid.go b/pkg/stringid/stringid.go index a0c7c42a05..fa7d9166eb 100644 --- a/pkg/stringid/stringid.go +++ b/pkg/stringid/stringid.go @@ -1,5 +1,5 @@ // Package stringid provides helper functions for dealing with string identifiers -package stringid +package stringid // import "github.com/docker/docker/pkg/stringid" import ( cryptorand "crypto/rand" diff --git a/pkg/stringid/stringid_test.go b/pkg/stringid/stringid_test.go index 8ff6b4383d..a7ccd5faae 100644 --- a/pkg/stringid/stringid_test.go +++ b/pkg/stringid/stringid_test.go @@ -1,4 +1,4 @@ -package stringid +package stringid // import "github.com/docker/docker/pkg/stringid" import ( "strings" diff --git a/pkg/symlink/fs.go b/pkg/symlink/fs.go index 52fb9a691b..7b894cde73 100644 --- a/pkg/symlink/fs.go +++ b/pkg/symlink/fs.go @@ -4,7 +4,7 @@ // This code is a modified version of path/filepath/symlink.go from the Go standard library. -package symlink +package symlink // import "github.com/docker/docker/pkg/symlink" import ( "bytes" diff --git a/pkg/symlink/fs_unix.go b/pkg/symlink/fs_unix.go index 22708273d6..c6dafcb0b9 100644 --- a/pkg/symlink/fs_unix.go +++ b/pkg/symlink/fs_unix.go @@ -1,6 +1,6 @@ // +build !windows -package symlink +package symlink // import "github.com/docker/docker/pkg/symlink" import ( "path/filepath" diff --git a/pkg/symlink/fs_unix_test.go b/pkg/symlink/fs_unix_test.go index 7085c0b666..9ed1dd70db 100644 --- a/pkg/symlink/fs_unix_test.go +++ b/pkg/symlink/fs_unix_test.go @@ -2,7 +2,7 @@ // Licensed under the Apache License, Version 2.0; See LICENSE.APACHE -package symlink +package symlink // import "github.com/docker/docker/pkg/symlink" import ( "fmt" diff --git a/pkg/symlink/fs_windows.go b/pkg/symlink/fs_windows.go index 31523ade92..754761717b 100644 --- a/pkg/symlink/fs_windows.go +++ b/pkg/symlink/fs_windows.go @@ -1,4 +1,4 @@ -package symlink +package symlink // import "github.com/docker/docker/pkg/symlink" import ( "bytes" diff --git a/pkg/sysinfo/numcpu.go b/pkg/sysinfo/numcpu.go index aeb1a3a804..eea2d25bf9 100644 --- a/pkg/sysinfo/numcpu.go +++ b/pkg/sysinfo/numcpu.go @@ -1,6 +1,6 @@ // +build !linux,!windows -package sysinfo +package sysinfo // import "github.com/docker/docker/pkg/sysinfo" import ( "runtime" diff --git a/pkg/sysinfo/numcpu_linux.go b/pkg/sysinfo/numcpu_linux.go index 5739b33ac6..5f6c6df8c4 100644 --- a/pkg/sysinfo/numcpu_linux.go +++ b/pkg/sysinfo/numcpu_linux.go @@ -1,4 +1,4 @@ -package sysinfo +package sysinfo // import "github.com/docker/docker/pkg/sysinfo" import ( "runtime" diff --git a/pkg/sysinfo/numcpu_windows.go b/pkg/sysinfo/numcpu_windows.go index 3516182ff2..13523f671f 100644 --- a/pkg/sysinfo/numcpu_windows.go +++ b/pkg/sysinfo/numcpu_windows.go @@ -1,4 +1,4 @@ -package sysinfo +package sysinfo // import "github.com/docker/docker/pkg/sysinfo" import ( "runtime" diff --git a/pkg/sysinfo/sysinfo.go b/pkg/sysinfo/sysinfo.go index f046de4b16..8fc0ecc25e 100644 --- a/pkg/sysinfo/sysinfo.go +++ b/pkg/sysinfo/sysinfo.go @@ -1,4 +1,4 @@ -package sysinfo +package sysinfo // import "github.com/docker/docker/pkg/sysinfo" import "github.com/docker/docker/pkg/parsers" diff --git a/pkg/sysinfo/sysinfo_linux.go b/pkg/sysinfo/sysinfo_linux.go index 471f786a70..dde5be19bc 100644 --- a/pkg/sysinfo/sysinfo_linux.go +++ b/pkg/sysinfo/sysinfo_linux.go @@ -1,4 +1,4 @@ -package sysinfo +package sysinfo // import "github.com/docker/docker/pkg/sysinfo" import ( "fmt" diff --git a/pkg/sysinfo/sysinfo_linux_test.go b/pkg/sysinfo/sysinfo_linux_test.go index 860784f2ae..a798bf6e85 100644 --- a/pkg/sysinfo/sysinfo_linux_test.go +++ b/pkg/sysinfo/sysinfo_linux_test.go @@ -1,4 +1,4 @@ -package sysinfo +package sysinfo // import "github.com/docker/docker/pkg/sysinfo" import ( "io/ioutil" diff --git a/pkg/sysinfo/sysinfo_test.go b/pkg/sysinfo/sysinfo_test.go index b61fbcf541..6a118b63c8 100644 --- a/pkg/sysinfo/sysinfo_test.go +++ b/pkg/sysinfo/sysinfo_test.go @@ -1,4 +1,4 @@ -package sysinfo +package sysinfo // import "github.com/docker/docker/pkg/sysinfo" import "testing" diff --git a/pkg/sysinfo/sysinfo_unix.go b/pkg/sysinfo/sysinfo_unix.go index beac32840c..23cc695fb8 100644 --- a/pkg/sysinfo/sysinfo_unix.go +++ b/pkg/sysinfo/sysinfo_unix.go @@ -1,6 +1,6 @@ // +build !linux,!windows -package sysinfo +package sysinfo // import "github.com/docker/docker/pkg/sysinfo" // New returns an empty SysInfo for non linux for now. func New(quiet bool) *SysInfo { diff --git a/pkg/sysinfo/sysinfo_windows.go b/pkg/sysinfo/sysinfo_windows.go index 8889318c39..5f68524e7e 100644 --- a/pkg/sysinfo/sysinfo_windows.go +++ b/pkg/sysinfo/sysinfo_windows.go @@ -1,4 +1,4 @@ -package sysinfo +package sysinfo // import "github.com/docker/docker/pkg/sysinfo" // New returns an empty SysInfo for windows for now. func New(quiet bool) *SysInfo { diff --git a/pkg/system/chtimes.go b/pkg/system/chtimes.go index 18378f1cae..c26a4e24b6 100644 --- a/pkg/system/chtimes.go +++ b/pkg/system/chtimes.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import ( "os" diff --git a/pkg/system/chtimes_test.go b/pkg/system/chtimes_test.go index 5c87df32a2..5a3f98e199 100644 --- a/pkg/system/chtimes_test.go +++ b/pkg/system/chtimes_test.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import ( "io/ioutil" diff --git a/pkg/system/chtimes_unix.go b/pkg/system/chtimes_unix.go index 09d58bcbfd..259138a45b 100644 --- a/pkg/system/chtimes_unix.go +++ b/pkg/system/chtimes_unix.go @@ -1,6 +1,6 @@ // +build !windows -package system +package system // import "github.com/docker/docker/pkg/system" import ( "time" diff --git a/pkg/system/chtimes_unix_test.go b/pkg/system/chtimes_unix_test.go index 6ec9a7173c..e25232c767 100644 --- a/pkg/system/chtimes_unix_test.go +++ b/pkg/system/chtimes_unix_test.go @@ -1,6 +1,6 @@ // +build !windows -package system +package system // import "github.com/docker/docker/pkg/system" import ( "os" diff --git a/pkg/system/chtimes_windows.go b/pkg/system/chtimes_windows.go index a1f4fd53bc..d3a115ff42 100644 --- a/pkg/system/chtimes_windows.go +++ b/pkg/system/chtimes_windows.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import ( "time" diff --git a/pkg/system/chtimes_windows_test.go b/pkg/system/chtimes_windows_test.go index 72d8a10619..d91e4bc6e4 100644 --- a/pkg/system/chtimes_windows_test.go +++ b/pkg/system/chtimes_windows_test.go @@ -1,6 +1,6 @@ // +build windows -package system +package system // import "github.com/docker/docker/pkg/system" import ( "os" diff --git a/pkg/system/errors.go b/pkg/system/errors.go index 1b5bc2c037..2573d71622 100644 --- a/pkg/system/errors.go +++ b/pkg/system/errors.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import ( "errors" diff --git a/pkg/system/exitcode.go b/pkg/system/exitcode.go index a5e5616c4f..4ba8fe35bf 100644 --- a/pkg/system/exitcode.go +++ b/pkg/system/exitcode.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import ( "fmt" diff --git a/pkg/system/filesys.go b/pkg/system/filesys.go index 102565f760..adeb163052 100644 --- a/pkg/system/filesys.go +++ b/pkg/system/filesys.go @@ -1,6 +1,6 @@ // +build !windows -package system +package system // import "github.com/docker/docker/pkg/system" import ( "io/ioutil" diff --git a/pkg/system/filesys_windows.go b/pkg/system/filesys_windows.go index b1e46d9e85..a1f6013f13 100644 --- a/pkg/system/filesys_windows.go +++ b/pkg/system/filesys_windows.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import ( "os" diff --git a/pkg/system/init.go b/pkg/system/init.go index 17935088de..a17597aaba 100644 --- a/pkg/system/init.go +++ b/pkg/system/init.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import ( "syscall" diff --git a/pkg/system/init_unix.go b/pkg/system/init_unix.go index a219895e6d..4996a67c12 100644 --- a/pkg/system/init_unix.go +++ b/pkg/system/init_unix.go @@ -1,6 +1,6 @@ // +build !windows -package system +package system // import "github.com/docker/docker/pkg/system" // InitLCOW does nothing since LCOW is a windows only feature func InitLCOW(experimental bool) { diff --git a/pkg/system/init_windows.go b/pkg/system/init_windows.go index 9487947368..4910ff69d6 100644 --- a/pkg/system/init_windows.go +++ b/pkg/system/init_windows.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" // lcowSupported determines if Linux Containers on Windows are supported. var lcowSupported = false diff --git a/pkg/system/lcow.go b/pkg/system/lcow.go index 95958b2c84..5c3fbfe6f4 100644 --- a/pkg/system/lcow.go +++ b/pkg/system/lcow.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import ( "fmt" diff --git a/pkg/system/lcow_unix.go b/pkg/system/lcow_unix.go index cff33bb408..26397fb8a1 100644 --- a/pkg/system/lcow_unix.go +++ b/pkg/system/lcow_unix.go @@ -1,6 +1,6 @@ // +build !windows -package system +package system // import "github.com/docker/docker/pkg/system" // LCOWSupported returns true if Linux containers on Windows are supported. func LCOWSupported() bool { diff --git a/pkg/system/lcow_windows.go b/pkg/system/lcow_windows.go index e54d01e696..f0139df8f7 100644 --- a/pkg/system/lcow_windows.go +++ b/pkg/system/lcow_windows.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" // LCOWSupported returns true if Linux containers on Windows are supported. func LCOWSupported() bool { diff --git a/pkg/system/lstat_unix.go b/pkg/system/lstat_unix.go index bd23c4d50b..7477995f1b 100644 --- a/pkg/system/lstat_unix.go +++ b/pkg/system/lstat_unix.go @@ -1,6 +1,6 @@ // +build !windows -package system +package system // import "github.com/docker/docker/pkg/system" import ( "syscall" diff --git a/pkg/system/lstat_unix_test.go b/pkg/system/lstat_unix_test.go index 062cf53bfe..9fb4a191cf 100644 --- a/pkg/system/lstat_unix_test.go +++ b/pkg/system/lstat_unix_test.go @@ -1,6 +1,6 @@ // +build linux freebsd -package system +package system // import "github.com/docker/docker/pkg/system" import ( "os" diff --git a/pkg/system/lstat_windows.go b/pkg/system/lstat_windows.go index e51df0dafe..359c791d9b 100644 --- a/pkg/system/lstat_windows.go +++ b/pkg/system/lstat_windows.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import "os" diff --git a/pkg/system/meminfo.go b/pkg/system/meminfo.go index 3b6e947e67..6667eb84dc 100644 --- a/pkg/system/meminfo.go +++ b/pkg/system/meminfo.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" // MemInfo contains memory statistics of the host system. type MemInfo struct { diff --git a/pkg/system/meminfo_linux.go b/pkg/system/meminfo_linux.go index 385f1d5e73..d79e8b0765 100644 --- a/pkg/system/meminfo_linux.go +++ b/pkg/system/meminfo_linux.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import ( "bufio" diff --git a/pkg/system/meminfo_unix_test.go b/pkg/system/meminfo_unix_test.go index 44f5562882..c3690d6311 100644 --- a/pkg/system/meminfo_unix_test.go +++ b/pkg/system/meminfo_unix_test.go @@ -1,6 +1,6 @@ // +build linux freebsd -package system +package system // import "github.com/docker/docker/pkg/system" import ( "strings" diff --git a/pkg/system/meminfo_unsupported.go b/pkg/system/meminfo_unsupported.go index 82ddd30c1b..56f4494268 100644 --- a/pkg/system/meminfo_unsupported.go +++ b/pkg/system/meminfo_unsupported.go @@ -1,6 +1,6 @@ // +build !linux,!windows -package system +package system // import "github.com/docker/docker/pkg/system" // ReadMemInfo is not supported on platforms other than linux and windows. func ReadMemInfo() (*MemInfo, error) { diff --git a/pkg/system/meminfo_windows.go b/pkg/system/meminfo_windows.go index 883944a4c5..6ed93f2fe2 100644 --- a/pkg/system/meminfo_windows.go +++ b/pkg/system/meminfo_windows.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import ( "unsafe" diff --git a/pkg/system/mknod.go b/pkg/system/mknod.go index 2200ec42da..b132482e03 100644 --- a/pkg/system/mknod.go +++ b/pkg/system/mknod.go @@ -1,6 +1,6 @@ // +build !windows -package system +package system // import "github.com/docker/docker/pkg/system" import ( "golang.org/x/sys/unix" diff --git a/pkg/system/mknod_windows.go b/pkg/system/mknod_windows.go index ba2692aedd..ec89d7a15e 100644 --- a/pkg/system/mknod_windows.go +++ b/pkg/system/mknod_windows.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" // Mknod is not implemented on Windows. func Mknod(path string, mode uint32, dev int) error { diff --git a/pkg/system/path.go b/pkg/system/path.go index 034c33c877..3d209b1bdf 100644 --- a/pkg/system/path.go +++ b/pkg/system/path.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import ( "fmt" diff --git a/pkg/system/path_windows_test.go b/pkg/system/path_windows_test.go index 0e6bcab522..974707eb71 100644 --- a/pkg/system/path_windows_test.go +++ b/pkg/system/path_windows_test.go @@ -1,6 +1,6 @@ // +build windows -package system +package system // import "github.com/docker/docker/pkg/system" import ( "testing" diff --git a/pkg/system/process_unix.go b/pkg/system/process_unix.go index 02c138235a..0195a891b2 100644 --- a/pkg/system/process_unix.go +++ b/pkg/system/process_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd darwin -package system +package system // import "github.com/docker/docker/pkg/system" import ( "syscall" diff --git a/pkg/system/process_windows.go b/pkg/system/process_windows.go index 5973c46de9..4e70c97b18 100644 --- a/pkg/system/process_windows.go +++ b/pkg/system/process_windows.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import "os" diff --git a/pkg/system/rm.go b/pkg/system/rm.go index c453adcdb9..02e4d26221 100644 --- a/pkg/system/rm.go +++ b/pkg/system/rm.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import ( "os" diff --git a/pkg/system/rm_test.go b/pkg/system/rm_test.go index fc2821f897..3b12272dcd 100644 --- a/pkg/system/rm_test.go +++ b/pkg/system/rm_test.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import ( "io/ioutil" diff --git a/pkg/system/stat_darwin.go b/pkg/system/stat_darwin.go index 715f05b938..c1c0ee9f38 100644 --- a/pkg/system/stat_darwin.go +++ b/pkg/system/stat_darwin.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import "syscall" diff --git a/pkg/system/stat_freebsd.go b/pkg/system/stat_freebsd.go index 715f05b938..c1c0ee9f38 100644 --- a/pkg/system/stat_freebsd.go +++ b/pkg/system/stat_freebsd.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import "syscall" diff --git a/pkg/system/stat_linux.go b/pkg/system/stat_linux.go index 1939f95181..98c9eb18d1 100644 --- a/pkg/system/stat_linux.go +++ b/pkg/system/stat_linux.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import "syscall" diff --git a/pkg/system/stat_openbsd.go b/pkg/system/stat_openbsd.go index b607dea946..756b92d1e6 100644 --- a/pkg/system/stat_openbsd.go +++ b/pkg/system/stat_openbsd.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import "syscall" diff --git a/pkg/system/stat_solaris.go b/pkg/system/stat_solaris.go index b607dea946..756b92d1e6 100644 --- a/pkg/system/stat_solaris.go +++ b/pkg/system/stat_solaris.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import "syscall" diff --git a/pkg/system/stat_unix.go b/pkg/system/stat_unix.go index 9dcec6afbd..3d7e2ebbef 100644 --- a/pkg/system/stat_unix.go +++ b/pkg/system/stat_unix.go @@ -1,6 +1,6 @@ // +build !windows -package system +package system // import "github.com/docker/docker/pkg/system" import ( "syscall" diff --git a/pkg/system/stat_unix_test.go b/pkg/system/stat_unix_test.go index 15c2e273b1..12687b33c1 100644 --- a/pkg/system/stat_unix_test.go +++ b/pkg/system/stat_unix_test.go @@ -1,6 +1,6 @@ // +build linux freebsd -package system +package system // import "github.com/docker/docker/pkg/system" import ( "os" diff --git a/pkg/system/stat_windows.go b/pkg/system/stat_windows.go index 6c63972682..b2456cb887 100644 --- a/pkg/system/stat_windows.go +++ b/pkg/system/stat_windows.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import ( "os" diff --git a/pkg/system/syscall_unix.go b/pkg/system/syscall_unix.go index 49dbdd3781..919a412a7b 100644 --- a/pkg/system/syscall_unix.go +++ b/pkg/system/syscall_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd -package system +package system // import "github.com/docker/docker/pkg/system" import "golang.org/x/sys/unix" diff --git a/pkg/system/syscall_windows.go b/pkg/system/syscall_windows.go index 23e9b207c7..85e89a7eea 100644 --- a/pkg/system/syscall_windows.go +++ b/pkg/system/syscall_windows.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import ( "unsafe" diff --git a/pkg/system/syscall_windows_test.go b/pkg/system/syscall_windows_test.go index 4886b2b9b4..8e78ba6285 100644 --- a/pkg/system/syscall_windows_test.go +++ b/pkg/system/syscall_windows_test.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import "testing" diff --git a/pkg/system/umask.go b/pkg/system/umask.go index 5a10eda5af..9912a2babb 100644 --- a/pkg/system/umask.go +++ b/pkg/system/umask.go @@ -1,6 +1,6 @@ // +build !windows -package system +package system // import "github.com/docker/docker/pkg/system" import ( "golang.org/x/sys/unix" diff --git a/pkg/system/umask_windows.go b/pkg/system/umask_windows.go index 71fc0f1bad..fc62388c38 100644 --- a/pkg/system/umask_windows.go +++ b/pkg/system/umask_windows.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" // Umask is not supported on the windows platform. func Umask(newmask int) (oldmask int, err error) { diff --git a/pkg/system/utimes_freebsd.go b/pkg/system/utimes_freebsd.go index 6a77524376..ed1b9fad59 100644 --- a/pkg/system/utimes_freebsd.go +++ b/pkg/system/utimes_freebsd.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import ( "syscall" diff --git a/pkg/system/utimes_linux.go b/pkg/system/utimes_linux.go index edc588a63f..0afe854589 100644 --- a/pkg/system/utimes_linux.go +++ b/pkg/system/utimes_linux.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import ( "syscall" diff --git a/pkg/system/utimes_unix_test.go b/pkg/system/utimes_unix_test.go index a73ed118c9..cc0e7cbf1f 100644 --- a/pkg/system/utimes_unix_test.go +++ b/pkg/system/utimes_unix_test.go @@ -1,6 +1,6 @@ // +build linux freebsd -package system +package system // import "github.com/docker/docker/pkg/system" import ( "io/ioutil" diff --git a/pkg/system/utimes_unsupported.go b/pkg/system/utimes_unsupported.go index 139714544d..095e072e1d 100644 --- a/pkg/system/utimes_unsupported.go +++ b/pkg/system/utimes_unsupported.go @@ -1,6 +1,6 @@ // +build !linux,!freebsd -package system +package system // import "github.com/docker/docker/pkg/system" import "syscall" diff --git a/pkg/system/xattrs_linux.go b/pkg/system/xattrs_linux.go index 98b111be42..66d4895b27 100644 --- a/pkg/system/xattrs_linux.go +++ b/pkg/system/xattrs_linux.go @@ -1,4 +1,4 @@ -package system +package system // import "github.com/docker/docker/pkg/system" import "golang.org/x/sys/unix" diff --git a/pkg/system/xattrs_unsupported.go b/pkg/system/xattrs_unsupported.go index 0114f2227c..d780a90cd3 100644 --- a/pkg/system/xattrs_unsupported.go +++ b/pkg/system/xattrs_unsupported.go @@ -1,6 +1,6 @@ // +build !linux -package system +package system // import "github.com/docker/docker/pkg/system" // Lgetxattr is not supported on platforms other than linux. func Lgetxattr(path string, attr string) ([]byte, error) { diff --git a/pkg/tailfile/tailfile.go b/pkg/tailfile/tailfile.go index 09eb393ab7..a223f66b75 100644 --- a/pkg/tailfile/tailfile.go +++ b/pkg/tailfile/tailfile.go @@ -1,6 +1,6 @@ // Package tailfile provides helper functions to read the nth lines of any // ReadSeeker. -package tailfile +package tailfile // import "github.com/docker/docker/pkg/tailfile" import ( "bytes" diff --git a/pkg/tailfile/tailfile_test.go b/pkg/tailfile/tailfile_test.go index 31217c036c..c74bb02e16 100644 --- a/pkg/tailfile/tailfile_test.go +++ b/pkg/tailfile/tailfile_test.go @@ -1,4 +1,4 @@ -package tailfile +package tailfile // import "github.com/docker/docker/pkg/tailfile" import ( "io/ioutil" diff --git a/pkg/tarsum/builder_context.go b/pkg/tarsum/builder_context.go index b42983e984..bc7d84df4e 100644 --- a/pkg/tarsum/builder_context.go +++ b/pkg/tarsum/builder_context.go @@ -1,4 +1,4 @@ -package tarsum +package tarsum // import "github.com/docker/docker/pkg/tarsum" // BuilderContext is an interface extending TarSum by adding the Remove method. // In general there was concern about adding this method to TarSum itself diff --git a/pkg/tarsum/builder_context_test.go b/pkg/tarsum/builder_context_test.go index f54bf3a1bd..86adb442d6 100644 --- a/pkg/tarsum/builder_context_test.go +++ b/pkg/tarsum/builder_context_test.go @@ -1,4 +1,4 @@ -package tarsum +package tarsum // import "github.com/docker/docker/pkg/tarsum" import ( "io" diff --git a/pkg/tarsum/fileinfosums.go b/pkg/tarsum/fileinfosums.go index 908131ebc9..01d4ed59b2 100644 --- a/pkg/tarsum/fileinfosums.go +++ b/pkg/tarsum/fileinfosums.go @@ -1,4 +1,4 @@ -package tarsum +package tarsum // import "github.com/docker/docker/pkg/tarsum" import ( "runtime" diff --git a/pkg/tarsum/fileinfosums_test.go b/pkg/tarsum/fileinfosums_test.go index 2e243d53d5..e6ebd9cc86 100644 --- a/pkg/tarsum/fileinfosums_test.go +++ b/pkg/tarsum/fileinfosums_test.go @@ -1,4 +1,4 @@ -package tarsum +package tarsum // import "github.com/docker/docker/pkg/tarsum" import "testing" diff --git a/pkg/tarsum/tarsum.go b/pkg/tarsum/tarsum.go index 154788db82..6ad152a2ed 100644 --- a/pkg/tarsum/tarsum.go +++ b/pkg/tarsum/tarsum.go @@ -15,7 +15,7 @@ // constraining the ordering or manipulation of the files during the creation or // unpacking of the archive, nor include additional metadata state about the file // system attributes. -package tarsum +package tarsum // import "github.com/docker/docker/pkg/tarsum" import ( "archive/tar" diff --git a/pkg/tarsum/tarsum_test.go b/pkg/tarsum/tarsum_test.go index 05f00d36af..466eda0aec 100644 --- a/pkg/tarsum/tarsum_test.go +++ b/pkg/tarsum/tarsum_test.go @@ -1,4 +1,4 @@ -package tarsum +package tarsum // import "github.com/docker/docker/pkg/tarsum" import ( "archive/tar" diff --git a/pkg/tarsum/versioning.go b/pkg/tarsum/versioning.go index a62cc3ebc0..aa1f171862 100644 --- a/pkg/tarsum/versioning.go +++ b/pkg/tarsum/versioning.go @@ -1,4 +1,4 @@ -package tarsum +package tarsum // import "github.com/docker/docker/pkg/tarsum" import ( "archive/tar" diff --git a/pkg/tarsum/versioning_test.go b/pkg/tarsum/versioning_test.go index 88e0a5783c..79b9cc9107 100644 --- a/pkg/tarsum/versioning_test.go +++ b/pkg/tarsum/versioning_test.go @@ -1,4 +1,4 @@ -package tarsum +package tarsum // import "github.com/docker/docker/pkg/tarsum" import ( "testing" diff --git a/pkg/tarsum/writercloser.go b/pkg/tarsum/writercloser.go index 9727ecde3e..c4c45a35e7 100644 --- a/pkg/tarsum/writercloser.go +++ b/pkg/tarsum/writercloser.go @@ -1,4 +1,4 @@ -package tarsum +package tarsum // import "github.com/docker/docker/pkg/tarsum" import ( "io" diff --git a/pkg/term/ascii.go b/pkg/term/ascii.go index 55873c0556..87bca8d4ac 100644 --- a/pkg/term/ascii.go +++ b/pkg/term/ascii.go @@ -1,4 +1,4 @@ -package term +package term // import "github.com/docker/docker/pkg/term" import ( "fmt" diff --git a/pkg/term/ascii_test.go b/pkg/term/ascii_test.go index 5078cb7075..e426de35b4 100644 --- a/pkg/term/ascii_test.go +++ b/pkg/term/ascii_test.go @@ -1,4 +1,4 @@ -package term +package term // import "github.com/docker/docker/pkg/term" import ( "testing" diff --git a/pkg/term/proxy.go b/pkg/term/proxy.go index e648eb8120..5c4a5260fc 100644 --- a/pkg/term/proxy.go +++ b/pkg/term/proxy.go @@ -1,4 +1,4 @@ -package term +package term // import "github.com/docker/docker/pkg/term" import ( "io" diff --git a/pkg/term/proxy_test.go b/pkg/term/proxy_test.go index baba193d16..ff40c1beff 100644 --- a/pkg/term/proxy_test.go +++ b/pkg/term/proxy_test.go @@ -1,4 +1,4 @@ -package term +package term // import "github.com/docker/docker/pkg/term" import ( "bytes" diff --git a/pkg/term/tc.go b/pkg/term/tc.go index 19dbb1cb11..01bcaa8abb 100644 --- a/pkg/term/tc.go +++ b/pkg/term/tc.go @@ -1,6 +1,6 @@ // +build !windows -package term +package term // import "github.com/docker/docker/pkg/term" import ( "syscall" diff --git a/pkg/term/term.go b/pkg/term/term.go index 4f59d8d938..0589a95519 100644 --- a/pkg/term/term.go +++ b/pkg/term/term.go @@ -2,7 +2,7 @@ // Package term provides structures and helper functions to work with // terminal (state, sizes). -package term +package term // import "github.com/docker/docker/pkg/term" import ( "errors" diff --git a/pkg/term/term_linux_test.go b/pkg/term/term_linux_test.go index 0bb6f1c95f..6e42d3edd7 100644 --- a/pkg/term/term_linux_test.go +++ b/pkg/term/term_linux_test.go @@ -1,6 +1,6 @@ //+build linux -package term +package term // import "github.com/docker/docker/pkg/term" import ( "io/ioutil" diff --git a/pkg/term/term_windows.go b/pkg/term/term_windows.go index 284ac63010..64ead3c53b 100644 --- a/pkg/term/term_windows.go +++ b/pkg/term/term_windows.go @@ -1,4 +1,4 @@ -package term +package term // import "github.com/docker/docker/pkg/term" import ( "io" diff --git a/pkg/term/termios_bsd.go b/pkg/term/termios_bsd.go index c47341e873..48f25ce7eb 100644 --- a/pkg/term/termios_bsd.go +++ b/pkg/term/termios_bsd.go @@ -1,6 +1,6 @@ // +build darwin freebsd openbsd -package term +package term // import "github.com/docker/docker/pkg/term" import ( "unsafe" diff --git a/pkg/term/termios_linux.go b/pkg/term/termios_linux.go index 0f21abcc2f..6d4c63fdb7 100644 --- a/pkg/term/termios_linux.go +++ b/pkg/term/termios_linux.go @@ -1,4 +1,4 @@ -package term +package term // import "github.com/docker/docker/pkg/term" import ( "golang.org/x/sys/unix" diff --git a/pkg/term/windows/ansi_reader.go b/pkg/term/windows/ansi_reader.go index 29d3963187..1d7c452cc8 100644 --- a/pkg/term/windows/ansi_reader.go +++ b/pkg/term/windows/ansi_reader.go @@ -1,6 +1,6 @@ // +build windows -package windowsconsole +package windowsconsole // import "github.com/docker/docker/pkg/term/windows" import ( "bytes" diff --git a/pkg/term/windows/ansi_writer.go b/pkg/term/windows/ansi_writer.go index 256577e1f2..7799a03fc5 100644 --- a/pkg/term/windows/ansi_writer.go +++ b/pkg/term/windows/ansi_writer.go @@ -1,6 +1,6 @@ // +build windows -package windowsconsole +package windowsconsole // import "github.com/docker/docker/pkg/term/windows" import ( "io" diff --git a/pkg/term/windows/console.go b/pkg/term/windows/console.go index 4bad32ea78..5274019758 100644 --- a/pkg/term/windows/console.go +++ b/pkg/term/windows/console.go @@ -1,6 +1,6 @@ // +build windows -package windowsconsole +package windowsconsole // import "github.com/docker/docker/pkg/term/windows" import ( "os" diff --git a/pkg/term/windows/windows.go b/pkg/term/windows/windows.go index c02a93a03f..1f8965969c 100644 --- a/pkg/term/windows/windows.go +++ b/pkg/term/windows/windows.go @@ -2,7 +2,7 @@ // When asked for the set of standard streams (e.g., stdin, stdout, stderr), the code will create // and return pseudo-streams that convert ANSI sequences to / from Windows Console API calls. -package windowsconsole +package windowsconsole // import "github.com/docker/docker/pkg/term/windows" import ( "io/ioutil" diff --git a/pkg/term/windows/windows_test.go b/pkg/term/windows/windows_test.go index 3c8084b3d8..80cda601fa 100644 --- a/pkg/term/windows/windows_test.go +++ b/pkg/term/windows/windows_test.go @@ -1,3 +1,3 @@ // This file is necessary to pass the Docker tests. -package windowsconsole +package windowsconsole // import "github.com/docker/docker/pkg/term/windows" diff --git a/pkg/term/winsize.go b/pkg/term/winsize.go index 1ef98d5996..a19663ad83 100644 --- a/pkg/term/winsize.go +++ b/pkg/term/winsize.go @@ -1,6 +1,6 @@ // +build !windows -package term +package term // import "github.com/docker/docker/pkg/term" import ( "golang.org/x/sys/unix" diff --git a/pkg/truncindex/truncindex.go b/pkg/truncindex/truncindex.go index 74776e65e6..d5c840cf13 100644 --- a/pkg/truncindex/truncindex.go +++ b/pkg/truncindex/truncindex.go @@ -1,7 +1,7 @@ // Package truncindex provides a general 'index tree', used by Docker // in order to be able to reference containers by only a few unambiguous // characters of their id. -package truncindex +package truncindex // import "github.com/docker/docker/pkg/truncindex" import ( "errors" diff --git a/pkg/truncindex/truncindex_test.go b/pkg/truncindex/truncindex_test.go index 89658cabb9..5977ca315f 100644 --- a/pkg/truncindex/truncindex_test.go +++ b/pkg/truncindex/truncindex_test.go @@ -1,4 +1,4 @@ -package truncindex +package truncindex // import "github.com/docker/docker/pkg/truncindex" import ( "math/rand" diff --git a/pkg/urlutil/urlutil.go b/pkg/urlutil/urlutil.go index cfcd582036..eaf2535da3 100644 --- a/pkg/urlutil/urlutil.go +++ b/pkg/urlutil/urlutil.go @@ -1,6 +1,6 @@ // Package urlutil provides helper function to check urls kind. // It supports http urls, git urls and transport url (tcp://, …) -package urlutil +package urlutil // import "github.com/docker/docker/pkg/urlutil" import ( "regexp" diff --git a/pkg/urlutil/urlutil_test.go b/pkg/urlutil/urlutil_test.go index e7579f554f..6660368316 100644 --- a/pkg/urlutil/urlutil_test.go +++ b/pkg/urlutil/urlutil_test.go @@ -1,4 +1,4 @@ -package urlutil +package urlutil // import "github.com/docker/docker/pkg/urlutil" import "testing" diff --git a/pkg/useragent/useragent.go b/pkg/useragent/useragent.go index 1137db51b8..22db82129b 100644 --- a/pkg/useragent/useragent.go +++ b/pkg/useragent/useragent.go @@ -1,6 +1,6 @@ // Package useragent provides helper functions to pack // version information into a single User-Agent header. -package useragent +package useragent // import "github.com/docker/docker/pkg/useragent" import ( "strings" diff --git a/pkg/useragent/useragent_test.go b/pkg/useragent/useragent_test.go index 0ad7243a6d..76868dc852 100644 --- a/pkg/useragent/useragent_test.go +++ b/pkg/useragent/useragent_test.go @@ -1,4 +1,4 @@ -package useragent +package useragent // import "github.com/docker/docker/pkg/useragent" import "testing" diff --git a/plugin/backend_linux.go b/plugin/backend_linux.go index 92e8a9c5aa..c86b11f61a 100644 --- a/plugin/backend_linux.go +++ b/plugin/backend_linux.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/plugin" import ( "archive/tar" diff --git a/plugin/backend_linux_test.go b/plugin/backend_linux_test.go index 6cbe4cde12..81cf2ebb76 100644 --- a/plugin/backend_linux_test.go +++ b/plugin/backend_linux_test.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/plugin" import ( "io/ioutil" diff --git a/plugin/backend_unsupported.go b/plugin/backend_unsupported.go index e69bb883d0..ac557c24c6 100644 --- a/plugin/backend_unsupported.go +++ b/plugin/backend_unsupported.go @@ -1,6 +1,6 @@ // +build !linux -package plugin +package plugin // import "github.com/docker/docker/plugin" import ( "errors" diff --git a/plugin/blobstore.go b/plugin/blobstore.go index 1578311821..1702220704 100644 --- a/plugin/blobstore.go +++ b/plugin/blobstore.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/plugin" import ( "fmt" diff --git a/plugin/defs.go b/plugin/defs.go index 3e930de048..beb880102b 100644 --- a/plugin/defs.go +++ b/plugin/defs.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/plugin" import ( "sync" diff --git a/plugin/errors.go b/plugin/errors.go index a4f6fa8103..44d99b39b2 100644 --- a/plugin/errors.go +++ b/plugin/errors.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/plugin" import "fmt" diff --git a/plugin/events.go b/plugin/events.go index 92e603850d..d204340aa7 100644 --- a/plugin/events.go +++ b/plugin/events.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/plugin" import ( "fmt" diff --git a/plugin/executor/containerd/containerd.go b/plugin/executor/containerd/containerd.go index 7b35136a1f..55313065bf 100644 --- a/plugin/executor/containerd/containerd.go +++ b/plugin/executor/containerd/containerd.go @@ -1,4 +1,4 @@ -package containerd +package containerd // import "github.com/docker/docker/plugin/executor/containerd" import ( "context" diff --git a/plugin/manager.go b/plugin/manager.go index d686443c6f..b2051cb621 100644 --- a/plugin/manager.go +++ b/plugin/manager.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/plugin" import ( "encoding/json" diff --git a/plugin/manager_linux.go b/plugin/manager_linux.go index 65380af06f..256b095a5c 100644 --- a/plugin/manager_linux.go +++ b/plugin/manager_linux.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/plugin" import ( "encoding/json" diff --git a/plugin/manager_linux_test.go b/plugin/manager_linux_test.go index 3259ca8cf3..be5f933c1d 100644 --- a/plugin/manager_linux_test.go +++ b/plugin/manager_linux_test.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/plugin" import ( "io/ioutil" diff --git a/plugin/manager_test.go b/plugin/manager_test.go index 4efe76b446..62ccf2149d 100644 --- a/plugin/manager_test.go +++ b/plugin/manager_test.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/plugin" import ( "testing" diff --git a/plugin/manager_windows.go b/plugin/manager_windows.go index ac03d6e639..309a31c2cf 100644 --- a/plugin/manager_windows.go +++ b/plugin/manager_windows.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/plugin" import ( "fmt" diff --git a/plugin/store.go b/plugin/store.go index 9768c25068..735eea423d 100644 --- a/plugin/store.go +++ b/plugin/store.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/plugin" import ( "fmt" diff --git a/plugin/store_test.go b/plugin/store_test.go index 5c61cc61c7..14b484f76c 100644 --- a/plugin/store_test.go +++ b/plugin/store_test.go @@ -1,4 +1,4 @@ -package plugin +package plugin // import "github.com/docker/docker/plugin" import ( "testing" diff --git a/plugin/v2/plugin.go b/plugin/v2/plugin.go index ce3257c0cb..42028be5de 100644 --- a/plugin/v2/plugin.go +++ b/plugin/v2/plugin.go @@ -1,4 +1,4 @@ -package v2 +package v2 // import "github.com/docker/docker/plugin/v2" import ( "fmt" diff --git a/plugin/v2/plugin_linux.go b/plugin/v2/plugin_linux.go index 9590df4f7d..05d0f0e3b5 100644 --- a/plugin/v2/plugin_linux.go +++ b/plugin/v2/plugin_linux.go @@ -1,4 +1,4 @@ -package v2 +package v2 // import "github.com/docker/docker/plugin/v2" import ( "os" diff --git a/plugin/v2/plugin_unsupported.go b/plugin/v2/plugin_unsupported.go index e60fb8311e..734b2ac664 100644 --- a/plugin/v2/plugin_unsupported.go +++ b/plugin/v2/plugin_unsupported.go @@ -1,6 +1,6 @@ // +build !linux -package v2 +package v2 // import "github.com/docker/docker/plugin/v2" import ( "errors" diff --git a/plugin/v2/settable.go b/plugin/v2/settable.go index 79c6befc24..efda564705 100644 --- a/plugin/v2/settable.go +++ b/plugin/v2/settable.go @@ -1,4 +1,4 @@ -package v2 +package v2 // import "github.com/docker/docker/plugin/v2" import ( "errors" diff --git a/plugin/v2/settable_test.go b/plugin/v2/settable_test.go index 1094c472b0..f2bb0a482f 100644 --- a/plugin/v2/settable_test.go +++ b/plugin/v2/settable_test.go @@ -1,4 +1,4 @@ -package v2 +package v2 // import "github.com/docker/docker/plugin/v2" import ( "reflect" diff --git a/profiles/apparmor/apparmor.go b/profiles/apparmor/apparmor.go index e957727d52..b021668c8e 100644 --- a/profiles/apparmor/apparmor.go +++ b/profiles/apparmor/apparmor.go @@ -1,6 +1,6 @@ // +build linux -package apparmor +package apparmor // import "github.com/docker/docker/profiles/apparmor" import ( "bufio" diff --git a/profiles/apparmor/template.go b/profiles/apparmor/template.go index 741da9c264..c00a3f70e9 100644 --- a/profiles/apparmor/template.go +++ b/profiles/apparmor/template.go @@ -1,6 +1,6 @@ // +build linux -package apparmor +package apparmor // import "github.com/docker/docker/profiles/apparmor" // baseTemplate defines the default apparmor profile for containers. const baseTemplate = ` diff --git a/profiles/seccomp/seccomp.go b/profiles/seccomp/seccomp.go index 07d522aad6..36ec76ae05 100644 --- a/profiles/seccomp/seccomp.go +++ b/profiles/seccomp/seccomp.go @@ -1,6 +1,6 @@ // +build linux -package seccomp +package seccomp // import "github.com/docker/docker/profiles/seccomp" import ( "encoding/json" diff --git a/profiles/seccomp/seccomp_default.go b/profiles/seccomp/seccomp_default.go index 1b5179c70e..9deab38e17 100644 --- a/profiles/seccomp/seccomp_default.go +++ b/profiles/seccomp/seccomp_default.go @@ -1,6 +1,6 @@ // +build linux,seccomp -package seccomp +package seccomp // import "github.com/docker/docker/profiles/seccomp" import ( "github.com/docker/docker/api/types" diff --git a/profiles/seccomp/seccomp_test.go b/profiles/seccomp/seccomp_test.go index 134692147b..b0b63ea811 100644 --- a/profiles/seccomp/seccomp_test.go +++ b/profiles/seccomp/seccomp_test.go @@ -1,6 +1,6 @@ // +build linux -package seccomp +package seccomp // import "github.com/docker/docker/profiles/seccomp" import ( "io/ioutil" diff --git a/profiles/seccomp/seccomp_unsupported.go b/profiles/seccomp/seccomp_unsupported.go index 0130effa61..67e06401f1 100644 --- a/profiles/seccomp/seccomp_unsupported.go +++ b/profiles/seccomp/seccomp_unsupported.go @@ -1,6 +1,6 @@ // +build linux,!seccomp -package seccomp +package seccomp // import "github.com/docker/docker/profiles/seccomp" import ( "github.com/docker/docker/api/types" diff --git a/reference/errors.go b/reference/errors.go index a16f124e9f..2d294c672e 100644 --- a/reference/errors.go +++ b/reference/errors.go @@ -1,4 +1,4 @@ -package reference +package reference // import "github.com/docker/docker/reference" type notFoundError string diff --git a/reference/store.go b/reference/store.go index bde5951927..b01051bf58 100644 --- a/reference/store.go +++ b/reference/store.go @@ -1,4 +1,4 @@ -package reference +package reference // import "github.com/docker/docker/reference" import ( "encoding/json" diff --git a/reference/store_test.go b/reference/store_test.go index 72a19d6b86..e423f5db2e 100644 --- a/reference/store_test.go +++ b/reference/store_test.go @@ -1,4 +1,4 @@ -package reference +package reference // import "github.com/docker/docker/reference" import ( "bytes" diff --git a/registry/auth.go b/registry/auth.go index 56b9c88295..1f2043a0d9 100644 --- a/registry/auth.go +++ b/registry/auth.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/registry" import ( "io/ioutil" diff --git a/registry/auth_test.go b/registry/auth_test.go index f5f213bf94..f8f3e1997b 100644 --- a/registry/auth_test.go +++ b/registry/auth_test.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/registry" import ( "testing" diff --git a/registry/config.go b/registry/config.go index 5246faa4ee..68bd01c481 100644 --- a/registry/config.go +++ b/registry/config.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/registry" import ( "fmt" diff --git a/registry/config_test.go b/registry/config_test.go index 40aa03dbc6..61b1c26d35 100644 --- a/registry/config_test.go +++ b/registry/config_test.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/registry" import ( "reflect" diff --git a/registry/config_unix.go b/registry/config_unix.go index b81d24933c..20fb47bcae 100644 --- a/registry/config_unix.go +++ b/registry/config_unix.go @@ -1,6 +1,6 @@ // +build !windows -package registry +package registry // import "github.com/docker/docker/registry" var ( // CertsDir is the directory where certificates are stored diff --git a/registry/config_windows.go b/registry/config_windows.go index 82bc4afea7..6de0508f87 100644 --- a/registry/config_windows.go +++ b/registry/config_windows.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/registry" import ( "os" diff --git a/registry/endpoint_test.go b/registry/endpoint_test.go index 8451d3f678..9268c3a4f0 100644 --- a/registry/endpoint_test.go +++ b/registry/endpoint_test.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/registry" import ( "net/http" diff --git a/registry/endpoint_v1.go b/registry/endpoint_v1.go index 9b4838a9b4..94c56dca7d 100644 --- a/registry/endpoint_v1.go +++ b/registry/endpoint_v1.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/registry" import ( "crypto/tls" diff --git a/registry/errors.go b/registry/errors.go index 55f74d97ed..5bab02e5e2 100644 --- a/registry/errors.go +++ b/registry/errors.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/registry" import ( "net/url" diff --git a/registry/registry.go b/registry/registry.go index fc49a6e519..7a84bbfb7e 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -1,5 +1,5 @@ // Package registry contains client primitives to interact with a remote Docker registry. -package registry +package registry // import "github.com/docker/docker/registry" import ( "crypto/tls" diff --git a/registry/registry_mock_test.go b/registry/registry_mock_test.go index f814273d0f..e6a4fca0cc 100644 --- a/registry/registry_mock_test.go +++ b/registry/registry_mock_test.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/registry" import ( "encoding/json" diff --git a/registry/registry_test.go b/registry/registry_test.go index 56e362f8f9..6375301469 100644 --- a/registry/registry_test.go +++ b/registry/registry_test.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/registry" import ( "fmt" diff --git a/registry/resumable/resumablerequestreader.go b/registry/resumable/resumablerequestreader.go index 12075e552c..8e97a1a4d1 100644 --- a/registry/resumable/resumablerequestreader.go +++ b/registry/resumable/resumablerequestreader.go @@ -1,4 +1,4 @@ -package resumable +package resumable // import "github.com/docker/docker/registry/resumable" import ( "fmt" diff --git a/registry/resumable/resumablerequestreader_test.go b/registry/resumable/resumablerequestreader_test.go index 9b3a6dc0cc..9a08e3416e 100644 --- a/registry/resumable/resumablerequestreader_test.go +++ b/registry/resumable/resumablerequestreader_test.go @@ -1,4 +1,4 @@ -package resumable +package resumable // import "github.com/docker/docker/registry/resumable" import ( "fmt" diff --git a/registry/service.go b/registry/service.go index bf4ab94d9f..1d0a32104b 100644 --- a/registry/service.go +++ b/registry/service.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/registry" import ( "crypto/tls" diff --git a/registry/service_v1.go b/registry/service_v1.go index 1d251aec6e..d955ec51fb 100644 --- a/registry/service_v1.go +++ b/registry/service_v1.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/registry" import "net/url" diff --git a/registry/service_v1_test.go b/registry/service_v1_test.go index 6ea846eed7..6171c3f5d2 100644 --- a/registry/service_v1_test.go +++ b/registry/service_v1_test.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/registry" import "testing" diff --git a/registry/service_v2.go b/registry/service_v2.go index 68466f823f..3a56dc9114 100644 --- a/registry/service_v2.go +++ b/registry/service_v2.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/registry" import ( "net/url" diff --git a/registry/session.go b/registry/session.go index ae0ec1b4bf..1d0bae2ca7 100644 --- a/registry/session.go +++ b/registry/session.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/registry" import ( "bytes" diff --git a/registry/types.go b/registry/types.go index 0c3cbd6913..28ed2bfa5e 100644 --- a/registry/types.go +++ b/registry/types.go @@ -1,4 +1,4 @@ -package registry +package registry // import "github.com/docker/docker/registry" import ( "github.com/docker/distribution/reference" diff --git a/restartmanager/restartmanager.go b/restartmanager/restartmanager.go index ec3b1cc240..6468ccf7e6 100644 --- a/restartmanager/restartmanager.go +++ b/restartmanager/restartmanager.go @@ -1,4 +1,4 @@ -package restartmanager +package restartmanager // import "github.com/docker/docker/restartmanager" import ( "errors" diff --git a/restartmanager/restartmanager_test.go b/restartmanager/restartmanager_test.go index 0c91235d7d..4b6f302479 100644 --- a/restartmanager/restartmanager_test.go +++ b/restartmanager/restartmanager_test.go @@ -1,4 +1,4 @@ -package restartmanager +package restartmanager // import "github.com/docker/docker/restartmanager" import ( "testing" diff --git a/runconfig/config.go b/runconfig/config.go index 56eb946cc8..cbacf47df3 100644 --- a/runconfig/config.go +++ b/runconfig/config.go @@ -1,4 +1,4 @@ -package runconfig +package runconfig // import "github.com/docker/docker/runconfig" import ( "encoding/json" diff --git a/runconfig/config_test.go b/runconfig/config_test.go index a3630a0098..63619fe53f 100644 --- a/runconfig/config_test.go +++ b/runconfig/config_test.go @@ -1,4 +1,4 @@ -package runconfig +package runconfig // import "github.com/docker/docker/runconfig" import ( "bytes" diff --git a/runconfig/config_unix.go b/runconfig/config_unix.go index b4fbfb2799..65e8d6fcd4 100644 --- a/runconfig/config_unix.go +++ b/runconfig/config_unix.go @@ -1,6 +1,6 @@ // +build !windows -package runconfig +package runconfig // import "github.com/docker/docker/runconfig" import ( "github.com/docker/docker/api/types/container" diff --git a/runconfig/config_windows.go b/runconfig/config_windows.go index f2361b554b..cced59d4df 100644 --- a/runconfig/config_windows.go +++ b/runconfig/config_windows.go @@ -1,4 +1,4 @@ -package runconfig +package runconfig // import "github.com/docker/docker/runconfig" import ( "github.com/docker/docker/api/types/container" diff --git a/runconfig/errors.go b/runconfig/errors.go index 78b0a8817c..038fe39660 100644 --- a/runconfig/errors.go +++ b/runconfig/errors.go @@ -1,4 +1,4 @@ -package runconfig +package runconfig // import "github.com/docker/docker/runconfig" const ( // ErrConflictContainerNetworkAndLinks conflict between --net=container and links diff --git a/runconfig/hostconfig.go b/runconfig/hostconfig.go index cfc5383f02..7d99e5acfa 100644 --- a/runconfig/hostconfig.go +++ b/runconfig/hostconfig.go @@ -1,4 +1,4 @@ -package runconfig +package runconfig // import "github.com/docker/docker/runconfig" import ( "encoding/json" diff --git a/runconfig/hostconfig_test.go b/runconfig/hostconfig_test.go index 76c3fa2cee..48d902d4d7 100644 --- a/runconfig/hostconfig_test.go +++ b/runconfig/hostconfig_test.go @@ -1,6 +1,6 @@ // +build !windows -package runconfig +package runconfig // import "github.com/docker/docker/runconfig" import ( "bytes" diff --git a/runconfig/hostconfig_unix.go b/runconfig/hostconfig_unix.go index 3527d29058..e579b06d9b 100644 --- a/runconfig/hostconfig_unix.go +++ b/runconfig/hostconfig_unix.go @@ -1,6 +1,6 @@ // +build !windows -package runconfig +package runconfig // import "github.com/docker/docker/runconfig" import ( "fmt" diff --git a/runconfig/hostconfig_windows.go b/runconfig/hostconfig_windows.go index 5eb956d1b4..33a4668af1 100644 --- a/runconfig/hostconfig_windows.go +++ b/runconfig/hostconfig_windows.go @@ -1,4 +1,4 @@ -package runconfig +package runconfig // import "github.com/docker/docker/runconfig" import ( "fmt" diff --git a/runconfig/hostconfig_windows_test.go b/runconfig/hostconfig_windows_test.go index b780dc05df..d7a480f313 100644 --- a/runconfig/hostconfig_windows_test.go +++ b/runconfig/hostconfig_windows_test.go @@ -1,6 +1,6 @@ // +build windows -package runconfig +package runconfig // import "github.com/docker/docker/runconfig" import ( "testing" diff --git a/runconfig/opts/parse.go b/runconfig/opts/parse.go index a7f1b79f16..8f7baeb637 100644 --- a/runconfig/opts/parse.go +++ b/runconfig/opts/parse.go @@ -1,4 +1,4 @@ -package opts +package opts // import "github.com/docker/docker/runconfig/opts" import ( "strings" diff --git a/volume/drivers/adapter.go b/volume/drivers/adapter.go index 54d1ff2630..76ed39bda3 100644 --- a/volume/drivers/adapter.go +++ b/volume/drivers/adapter.go @@ -1,4 +1,4 @@ -package volumedrivers +package volumedrivers // import "github.com/docker/docker/volume/drivers" import ( "errors" diff --git a/volume/drivers/extpoint.go b/volume/drivers/extpoint.go index c360b37a2b..a239035478 100644 --- a/volume/drivers/extpoint.go +++ b/volume/drivers/extpoint.go @@ -1,6 +1,6 @@ //go:generate pluginrpc-gen -i $GOFILE -o proxy.go -type volumeDriver -name VolumeDriver -package volumedrivers +package volumedrivers // import "github.com/docker/docker/volume/drivers" import ( "fmt" diff --git a/volume/drivers/extpoint_test.go b/volume/drivers/extpoint_test.go index 428b0752f2..fa18322a5d 100644 --- a/volume/drivers/extpoint_test.go +++ b/volume/drivers/extpoint_test.go @@ -1,4 +1,4 @@ -package volumedrivers +package volumedrivers // import "github.com/docker/docker/volume/drivers" import ( "testing" diff --git a/volume/drivers/proxy.go b/volume/drivers/proxy.go index f4020d600f..6715e0ea9b 100644 --- a/volume/drivers/proxy.go +++ b/volume/drivers/proxy.go @@ -1,6 +1,6 @@ // generated code - DO NOT EDIT -package volumedrivers +package volumedrivers // import "github.com/docker/docker/volume/drivers" import ( "errors" diff --git a/volume/drivers/proxy_test.go b/volume/drivers/proxy_test.go index b78c46a036..220186d298 100644 --- a/volume/drivers/proxy_test.go +++ b/volume/drivers/proxy_test.go @@ -1,4 +1,4 @@ -package volumedrivers +package volumedrivers // import "github.com/docker/docker/volume/drivers" import ( "fmt" diff --git a/volume/lcow_parser.go b/volume/lcow_parser.go index b6a49d84df..dba0eb66cd 100644 --- a/volume/lcow_parser.go +++ b/volume/lcow_parser.go @@ -1,4 +1,4 @@ -package volume +package volume // import "github.com/docker/docker/volume" import ( "errors" diff --git a/volume/linux_parser.go b/volume/linux_parser.go index 43f1915382..3d94b789a0 100644 --- a/volume/linux_parser.go +++ b/volume/linux_parser.go @@ -1,4 +1,4 @@ -package volume +package volume // import "github.com/docker/docker/volume" import ( "errors" diff --git a/volume/local/local.go b/volume/local/local.go index 206d96506c..df1299d668 100644 --- a/volume/local/local.go +++ b/volume/local/local.go @@ -1,7 +1,7 @@ // Package local provides the default implementation for volumes. It // is used to mount data volume containers and directories local to // the host server. -package local +package local // import "github.com/docker/docker/volume/local" import ( "encoding/json" diff --git a/volume/local/local_test.go b/volume/local/local_test.go index 2d95919ee7..e26fdd6386 100644 --- a/volume/local/local_test.go +++ b/volume/local/local_test.go @@ -1,4 +1,4 @@ -package local +package local // import "github.com/docker/docker/volume/local" import ( "io/ioutil" diff --git a/volume/local/local_unix.go b/volume/local/local_unix.go index 6226955717..b1c68b931b 100644 --- a/volume/local/local_unix.go +++ b/volume/local/local_unix.go @@ -3,7 +3,7 @@ // Package local provides the default implementation for volumes. It // is used to mount data volume containers and directories local to // the host server. -package local +package local // import "github.com/docker/docker/volume/local" import ( "fmt" diff --git a/volume/local/local_windows.go b/volume/local/local_windows.go index 6f5d2223ae..d96fc0f594 100644 --- a/volume/local/local_windows.go +++ b/volume/local/local_windows.go @@ -1,7 +1,7 @@ // Package local provides the default implementation for volumes. It // is used to mount data volume containers and directories local to // the host server. -package local +package local // import "github.com/docker/docker/volume/local" import ( "fmt" diff --git a/volume/parser.go b/volume/parser.go index 0b720313c7..9a10267819 100644 --- a/volume/parser.go +++ b/volume/parser.go @@ -1,4 +1,4 @@ -package volume +package volume // import "github.com/docker/docker/volume" import ( "errors" diff --git a/volume/store/db.go b/volume/store/db.go index 01f0abb238..fe6dbae9af 100644 --- a/volume/store/db.go +++ b/volume/store/db.go @@ -1,4 +1,4 @@ -package store +package store // import "github.com/docker/docker/volume/store" import ( "encoding/json" diff --git a/volume/store/errors.go b/volume/store/errors.go index 75e24e619c..268a7ab2dd 100644 --- a/volume/store/errors.go +++ b/volume/store/errors.go @@ -1,4 +1,4 @@ -package store +package store // import "github.com/docker/docker/volume/store" import ( "strings" diff --git a/volume/store/restore.go b/volume/store/restore.go index e2a72a6551..790a5b65f7 100644 --- a/volume/store/restore.go +++ b/volume/store/restore.go @@ -1,4 +1,4 @@ -package store +package store // import "github.com/docker/docker/volume/store" import ( "sync" diff --git a/volume/store/store.go b/volume/store/store.go index 9a511a5df5..643096a781 100644 --- a/volume/store/store.go +++ b/volume/store/store.go @@ -1,4 +1,4 @@ -package store +package store // import "github.com/docker/docker/volume/store" import ( "net" diff --git a/volume/store/store_test.go b/volume/store/store_test.go index 7d5294043d..54b7d7cfce 100644 --- a/volume/store/store_test.go +++ b/volume/store/store_test.go @@ -1,4 +1,4 @@ -package store +package store // import "github.com/docker/docker/volume/store" import ( "errors" diff --git a/volume/store/store_unix.go b/volume/store/store_unix.go index 065cb28eb8..a071e0c2ba 100644 --- a/volume/store/store_unix.go +++ b/volume/store/store_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd -package store +package store // import "github.com/docker/docker/volume/store" // normalizeVolumeName is a platform specific function to normalize the name // of a volume. This is a no-op on Unix-like platforms diff --git a/volume/store/store_windows.go b/volume/store/store_windows.go index 9e91a5f027..e4ef71c610 100644 --- a/volume/store/store_windows.go +++ b/volume/store/store_windows.go @@ -1,4 +1,4 @@ -package store +package store // import "github.com/docker/docker/volume/store" import "strings" diff --git a/volume/testutils/testutils.go b/volume/testutils/testutils.go index 84ab55ff77..45f445981e 100644 --- a/volume/testutils/testutils.go +++ b/volume/testutils/testutils.go @@ -1,4 +1,4 @@ -package testutils +package testutils // import "github.com/docker/docker/volume/testutils" import ( "encoding/json" diff --git a/volume/validate.go b/volume/validate.go index b3f6409487..3ebdcd7d98 100644 --- a/volume/validate.go +++ b/volume/validate.go @@ -1,4 +1,4 @@ -package volume +package volume // import "github.com/docker/docker/volume" import ( "fmt" diff --git a/volume/validate_test.go b/volume/validate_test.go index eac343f50a..d767b3d7f3 100644 --- a/volume/validate_test.go +++ b/volume/validate_test.go @@ -1,4 +1,4 @@ -package volume +package volume // import "github.com/docker/docker/volume" import ( "errors" diff --git a/volume/validate_unix_test.go b/volume/validate_unix_test.go index dd1de2f643..5375db380e 100644 --- a/volume/validate_unix_test.go +++ b/volume/validate_unix_test.go @@ -1,6 +1,6 @@ // +build !windows -package volume +package volume // import "github.com/docker/docker/volume" var ( testDestinationPath = "/foo" diff --git a/volume/validate_windows_test.go b/volume/validate_windows_test.go index d5f86ac850..9053a01a8b 100644 --- a/volume/validate_windows_test.go +++ b/volume/validate_windows_test.go @@ -1,4 +1,4 @@ -package volume +package volume // import "github.com/docker/docker/volume" var ( testDestinationPath = `c:\foo` diff --git a/volume/volume.go b/volume/volume.go index 207dc560c3..0b1d4e8657 100644 --- a/volume/volume.go +++ b/volume/volume.go @@ -1,4 +1,4 @@ -package volume +package volume // import "github.com/docker/docker/volume" import ( "fmt" diff --git a/volume/volume_copy.go b/volume/volume_copy.go index 37c7fa74a6..c0dc1cf2c2 100644 --- a/volume/volume_copy.go +++ b/volume/volume_copy.go @@ -1,4 +1,4 @@ -package volume +package volume // import "github.com/docker/docker/volume" import "strings" diff --git a/volume/volume_test.go b/volume/volume_test.go index 9f2020d58d..3ff2861bab 100644 --- a/volume/volume_test.go +++ b/volume/volume_test.go @@ -1,4 +1,4 @@ -package volume +package volume // import "github.com/docker/docker/volume" import ( "io/ioutil" diff --git a/volume/volume_unix.go b/volume/volume_unix.go index 1cb9317e7a..228c6d73a3 100644 --- a/volume/volume_unix.go +++ b/volume/volume_unix.go @@ -1,6 +1,6 @@ // +build linux freebsd darwin -package volume +package volume // import "github.com/docker/docker/volume" import ( "fmt" diff --git a/volume/volume_windows.go b/volume/volume_windows.go index 8ec1d6c801..1179dd4f4f 100644 --- a/volume/volume_windows.go +++ b/volume/volume_windows.go @@ -1,4 +1,4 @@ -package volume +package volume // import "github.com/docker/docker/volume" func (p *windowsParser) HasResource(m *MountPoint, absolutePath string) bool { return false diff --git a/volume/windows_parser.go b/volume/windows_parser.go index 5cf1a8da74..ad4e6fc281 100644 --- a/volume/windows_parser.go +++ b/volume/windows_parser.go @@ -1,4 +1,4 @@ -package volume +package volume // import "github.com/docker/docker/volume" import ( "errors"