From b75a18980592009af548f6852841372f32333272 Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Thu, 9 Jul 2020 12:21:15 +0300 Subject: [PATCH] Refactoring cmd package --- {cmd => legacy}/acl-handlers.go | 6 ++-- {cmd => legacy}/admin-handlers-config-kv.go | 20 ++++++------ {cmd => legacy}/admin-handlers-users.go | 4 +-- {cmd => legacy}/admin-handlers.go | 14 ++++---- {cmd => legacy}/admin-handlers_test.go | 2 +- {cmd => legacy}/admin-heal-ops.go | 4 +-- {cmd => legacy}/admin-quota-handlers.go | 6 ++-- {cmd => legacy}/admin-router.go | 4 +-- {cmd => legacy}/admin-server-info.go | 2 +- {cmd => legacy}/api-datatypes.go | 2 +- {cmd => legacy}/api-errors.go | 8 ++--- {cmd => legacy}/api-errors_test.go | 4 +-- {cmd => legacy}/api-headers.go | 6 ++-- {cmd => legacy}/api-headers_test.go | 2 +- {cmd => legacy}/api-resources.go | 2 +- {cmd => legacy}/api-resources_test.go | 2 +- {cmd => legacy}/api-response.go | 6 ++-- {cmd => legacy}/api-response_test.go | 2 +- {cmd => legacy}/api-router.go | 4 +-- {cmd => legacy}/api-utils.go | 2 +- {cmd => legacy}/api-utils_test.go | 2 +- {cmd => legacy}/auth-handler.go | 8 ++--- {cmd => legacy}/auth-handler_test.go | 2 +- {cmd => legacy}/background-heal-ops.go | 4 +-- .../background-newdisks-heal-ops.go | 4 +-- {cmd => legacy}/benchmark-utils_test.go | 2 +- {cmd => legacy}/bitrot-streaming.go | 4 +-- {cmd => legacy}/bitrot-whole.go | 4 +-- {cmd => legacy}/bitrot.go | 4 +-- {cmd => legacy}/bitrot_test.go | 2 +- {cmd => legacy}/bootstrap-peer-server.go | 8 ++--- {cmd => legacy}/bucket-encryption-handlers.go | 4 +-- {cmd => legacy}/bucket-encryption.go | 2 +- {cmd => legacy}/bucket-encryption_test.go | 2 +- {cmd => legacy}/bucket-handlers.go | 11 +++---- {cmd => legacy}/bucket-handlers_test.go | 2 +- {cmd => legacy}/bucket-lifecycle-handlers.go | 6 ++-- .../bucket-lifecycle-handlers_test.go | 2 +- {cmd => legacy}/bucket-lifecycle.go | 2 +- .../bucket-listobjects-handlers.go | 7 ++-- {cmd => legacy}/bucket-metadata-sys.go | 2 +- {cmd => legacy}/bucket-metadata.go | 4 +-- {cmd => legacy}/bucket-metadata_gen.go | 2 +- {cmd => legacy}/bucket-metadata_gen_test.go | 2 +- .../bucket-notification-handlers.go | 6 ++-- {cmd => legacy}/bucket-object-lock.go | 4 +-- {cmd => legacy}/bucket-policy-handlers.go | 4 +-- .../bucket-policy-handlers_test.go | 2 +- {cmd => legacy}/bucket-policy.go | 6 ++-- {cmd => legacy}/bucket-quota.go | 6 ++-- {cmd => legacy}/build-constants.go | 2 +- {cmd => legacy}/common-main.go | 6 ++-- {cmd => legacy}/config-common.go | 4 +-- {cmd => legacy}/config-current.go | 32 +++++++++---------- {cmd => legacy}/config-current_test.go | 4 +-- {cmd => legacy}/config-dir.go | 2 +- {cmd => legacy}/config-encrypted.go | 6 ++-- {cmd => legacy}/config-encrypted_test.go | 2 +- {cmd => legacy}/config-migrate.go | 22 ++++++------- {cmd => legacy}/config-migrate_test.go | 4 +-- {cmd => legacy}/config-versions.go | 22 ++++++------- {cmd => legacy}/config.go | 4 +-- {cmd => legacy}/config/api/api.go | 2 +- {cmd => legacy}/config/api/help.go | 2 +- {cmd => legacy}/config/bool-flag.go | 0 {cmd => legacy}/config/bool-flag_test.go | 0 {cmd => legacy}/config/cache/config.go | 2 +- {cmd => legacy}/config/cache/config_test.go | 0 {cmd => legacy}/config/cache/help.go | 2 +- {cmd => legacy}/config/cache/legacy.go | 2 +- {cmd => legacy}/config/cache/lookup.go | 2 +- {cmd => legacy}/config/certs.go | 0 {cmd => legacy}/config/certs_test.go | 0 {cmd => legacy}/config/certsinfo.go | 0 {cmd => legacy}/config/compress/compress.go | 2 +- .../config/compress/compress_test.go | 0 {cmd => legacy}/config/compress/help.go | 2 +- {cmd => legacy}/config/compress/legacy.go | 2 +- {cmd => legacy}/config/config.go | 0 {cmd => legacy}/config/config_test.go | 0 {cmd => legacy}/config/constants.go | 0 {cmd => legacy}/config/errors-utils.go | 0 {cmd => legacy}/config/errors.go | 0 {cmd => legacy}/config/etcd/dns/etcd_dns.go | 0 {cmd => legacy}/config/etcd/dns/types.go | 0 {cmd => legacy}/config/etcd/etcd.go | 2 +- {cmd => legacy}/config/etcd/etcd_test.go | 0 {cmd => legacy}/config/etcd/help.go | 2 +- {cmd => legacy}/config/help.go | 0 .../config/identity/ldap/config.go | 2 +- {cmd => legacy}/config/identity/ldap/help.go | 2 +- .../config/identity/ldap/legacy.go | 2 +- .../config/identity/openid/ecdsa-sha3.go | 0 .../config/identity/openid/help.go | 2 +- .../config/identity/openid/jwks.go | 0 .../config/identity/openid/jwks_test.go | 0 {cmd => legacy}/config/identity/openid/jwt.go | 2 +- .../config/identity/openid/jwt_test.go | 0 .../config/identity/openid/legacy.go | 2 +- .../config/identity/openid/rsa-sha3.go | 0 .../config/identity/openid/validators.go | 0 .../config/identity/openid/validators_test.go | 0 {cmd => legacy}/config/legacy.go | 0 {cmd => legacy}/config/notify/config.go | 0 {cmd => legacy}/config/notify/help.go | 2 +- {cmd => legacy}/config/notify/legacy.go | 2 +- {cmd => legacy}/config/notify/parse.go | 4 +-- {cmd => legacy}/config/policy/opa/config.go | 2 +- {cmd => legacy}/config/policy/opa/help.go | 2 +- {cmd => legacy}/config/policy/opa/legacy.go | 2 +- {cmd => legacy}/config/storageclass/help.go | 2 +- {cmd => legacy}/config/storageclass/legacy.go | 2 +- .../config/storageclass/storage-class.go | 2 +- .../config/storageclass/storage-class_test.go | 0 {cmd => legacy}/consolelogger.go | 8 ++--- {cmd => legacy}/copy-part-range.go | 2 +- {cmd => legacy}/copy-part-range_test.go | 2 +- {cmd => legacy}/crossdomain-xml-handler.go | 2 +- .../crossdomain-xml-handler_test.go | 2 +- {cmd => legacy}/crypto/config.go | 2 +- {cmd => legacy}/crypto/doc.go | 0 {cmd => legacy}/crypto/error.go | 0 {cmd => legacy}/crypto/header.go | 0 {cmd => legacy}/crypto/header_test.go | 0 {cmd => legacy}/crypto/help.go | 2 +- {cmd => legacy}/crypto/kes.go | 2 +- {cmd => legacy}/crypto/key.go | 2 +- {cmd => legacy}/crypto/key_test.go | 2 +- {cmd => legacy}/crypto/kms.go | 2 +- {cmd => legacy}/crypto/kms_test.go | 0 {cmd => legacy}/crypto/legacy.go | 2 +- {cmd => legacy}/crypto/metadata.go | 2 +- {cmd => legacy}/crypto/metadata_test.go | 2 +- {cmd => legacy}/crypto/parse.go | 0 {cmd => legacy}/crypto/parse_test.go | 0 {cmd => legacy}/crypto/retry.go | 0 {cmd => legacy}/crypto/sse.go | 2 +- {cmd => legacy}/crypto/sse_test.go | 0 {cmd => legacy}/crypto/vault.go | 0 {cmd => legacy}/crypto/vault_test.go | 0 {cmd => legacy}/data-crawler.go | 8 ++--- {cmd => legacy}/data-update-tracker.go | 6 ++-- {cmd => legacy}/data-update-tracker_test.go | 6 ++-- {cmd => legacy}/data-usage-cache.go | 4 +-- {cmd => legacy}/data-usage-cache_gen.go | 2 +- {cmd => legacy}/data-usage-cache_gen_test.go | 2 +- {cmd => legacy}/data-usage.go | 4 +-- {cmd => legacy}/data-usage_test.go | 2 +- {cmd => legacy}/disk-cache-backend.go | 10 +++--- .../disk-cache-check-support_other.go | 2 +- .../disk-cache-check-support_windows.go | 2 +- {cmd => legacy}/disk-cache-stats.go | 2 +- {cmd => legacy}/disk-cache-utils.go | 4 +-- {cmd => legacy}/disk-cache-utils_test.go | 2 +- {cmd => legacy}/disk-cache.go | 6 ++-- {cmd => legacy}/disk-cache_test.go | 2 +- {cmd => legacy}/dummy-data-generator_test.go | 2 +- {cmd => legacy}/dummy-handlers.go | 4 +-- {cmd => legacy}/dynamic-timeouts.go | 2 +- {cmd => legacy}/dynamic-timeouts_test.go | 2 +- {cmd => legacy}/encryption-v1.go | 6 ++-- {cmd => legacy}/encryption-v1_test.go | 4 +-- {cmd => legacy}/endpoint-ellipses.go | 4 +-- {cmd => legacy}/endpoint-ellipses_test.go | 2 +- {cmd => legacy}/endpoint.go | 6 ++-- {cmd => legacy}/endpoint_test.go | 2 +- {cmd => legacy}/erasure-decode.go | 4 +-- {cmd => legacy}/erasure-decode_test.go | 2 +- {cmd => legacy}/erasure-encode.go | 4 +-- {cmd => legacy}/erasure-encode_test.go | 2 +- {cmd => legacy}/erasure-heal.go | 4 +-- {cmd => legacy}/erasure-heal_test.go | 2 +- {cmd => legacy}/erasure-utils.go | 4 +-- {cmd => legacy}/erasure.go | 4 +-- {cmd => legacy}/erasure_test.go | 2 +- {cmd => legacy}/etcd.go | 2 +- {cmd => legacy}/fallocate.go | 2 +- {cmd => legacy}/fallocate_linux.go | 2 +- {cmd => legacy}/fallocate_linux_test.go | 2 +- {cmd => legacy}/fastwalk.go | 2 +- {cmd => legacy}/format-disk-cache.go | 4 +-- {cmd => legacy}/format-disk-cache_test.go | 2 +- {cmd => legacy}/format-fs.go | 6 ++-- {cmd => legacy}/format-fs_test.go | 2 +- {cmd => legacy}/format-meta.go | 2 +- {cmd => legacy}/format-xl.go | 8 ++--- {cmd => legacy}/format-xl_test.go | 2 +- {cmd => legacy}/fs-v1-helpers.go | 4 +-- {cmd => legacy}/fs-v1-helpers_test.go | 2 +- {cmd => legacy}/fs-v1-metadata.go | 6 ++-- {cmd => legacy}/fs-v1-metadata_test.go | 2 +- {cmd => legacy}/fs-v1-multipart.go | 4 +-- {cmd => legacy}/fs-v1-multipart_test.go | 2 +- {cmd => legacy}/fs-v1-rwpool.go | 4 +-- {cmd => legacy}/fs-v1-rwpool_test.go | 2 +- {cmd => legacy}/fs-v1.go | 8 ++--- {cmd => legacy}/fs-v1_test.go | 2 +- {cmd => legacy}/gateway-common.go | 8 ++--- {cmd => legacy}/gateway-common_test.go | 2 +- {cmd => legacy}/gateway-env.go | 2 +- {cmd => legacy}/gateway-interface.go | 2 +- {cmd => legacy}/gateway-main.go | 8 ++--- {cmd => legacy}/gateway-main_test.go | 2 +- {cmd => legacy}/gateway-metrics.go | 2 +- {cmd => legacy}/gateway-startup-msg.go | 2 +- {cmd => legacy}/gateway-startup-msg_test.go | 2 +- {cmd => legacy}/gateway-unsupported.go | 4 +-- {cmd => legacy}/generic-handlers.go | 12 +++---- {cmd => legacy}/generic-handlers_test.go | 4 +-- {cmd => legacy}/global-heal.go | 4 +-- {cmd => legacy}/globals.go | 20 ++++++------ {cmd => legacy}/handler-api.go | 4 +-- {cmd => legacy}/handler-utils.go | 6 ++-- {cmd => legacy}/handler-utils_test.go | 4 +-- {cmd => legacy}/hasher.go | 2 +- {cmd => legacy}/healthcheck-handler.go | 2 +- {cmd => legacy}/healthcheck-router.go | 2 +- {cmd => legacy}/http-stats.go | 4 +-- {cmd => legacy}/http-tracer.go | 6 ++-- {cmd => legacy}/http/close.go | 0 {cmd => legacy}/http/dial_linux.go | 0 {cmd => legacy}/http/dial_others.go | 0 {cmd => legacy}/http/headers.go | 0 {cmd => legacy}/http/listen_nix.go | 0 {cmd => legacy}/http/listen_others.go | 0 {cmd => legacy}/http/listener.go | 0 {cmd => legacy}/http/listener_test.go | 0 {cmd => legacy}/http/server.go | 0 {cmd => legacy}/http/server_test.go | 0 .../http/stats/http-traffic-recorder.go | 0 {cmd => legacy}/httprange.go | 2 +- {cmd => legacy}/httprange_test.go | 2 +- {cmd => legacy}/iam-etcd-store.go | 4 +-- {cmd => legacy}/iam-object-store.go | 4 +-- {cmd => legacy}/iam.go | 6 ++-- {cmd => legacy}/jwt.go | 6 ++-- {cmd => legacy}/jwt/parser.go | 0 {cmd => legacy}/jwt/parser_test.go | 0 {cmd => legacy}/jwt_test.go | 4 +-- {cmd => legacy}/leak-detect_test.go | 2 +- {cmd => legacy}/local-locker.go | 2 +- {cmd => legacy}/lock-rest-client.go | 10 +++--- {cmd => legacy}/lock-rest-client_test.go | 2 +- {cmd => legacy}/lock-rest-server-common.go | 2 +- .../lock-rest-server-common_test.go | 2 +- {cmd => legacy}/lock-rest-server.go | 2 +- {cmd => legacy}/logger/audit.go | 2 +- {cmd => legacy}/logger/config.go | 2 +- {cmd => legacy}/logger/console.go | 2 +- {cmd => legacy}/logger/help.go | 2 +- {cmd => legacy}/logger/legacy.go | 2 +- {cmd => legacy}/logger/logger.go | 2 +- {cmd => legacy}/logger/logonce.go | 0 {cmd => legacy}/logger/message/audit/entry.go | 2 +- {cmd => legacy}/logger/message/log/entry.go | 0 {cmd => legacy}/logger/reqinfo.go | 0 .../logger/target/console/console.go | 4 +-- {cmd => legacy}/logger/target/http/http.go | 2 +- {cmd => legacy}/logger/targets.go | 0 {cmd => legacy}/logger/utils.go | 0 {cmd => legacy}/main.go | 2 +- {cmd => legacy}/merge-walk-pool.go | 2 +- {cmd => legacy}/merge-walk-pool_test.go | 2 +- {cmd => legacy}/metrics-router.go | 2 +- {cmd => legacy}/metrics.go | 6 ++-- {cmd => legacy}/namespace-lock.go | 6 ++-- {cmd => legacy}/namespace-lock_test.go | 2 +- {cmd => legacy}/naughty-disk_test.go | 2 +- {cmd => legacy}/net.go | 6 ++-- {cmd => legacy}/net_test.go | 2 +- {cmd => legacy}/notification.go | 6 ++-- {cmd => legacy}/obdinfo.go | 2 +- {cmd => legacy}/obdinfo_other.go | 2 +- {cmd => legacy}/obdinfo_unix.go | 2 +- {cmd => legacy}/object-api-common.go | 4 +-- {cmd => legacy}/object-api-datatypes.go | 2 +- .../object-api-deleteobject_test.go | 2 +- {cmd => legacy}/object-api-errors.go | 2 +- {cmd => legacy}/object-api-getobject_test.go | 2 +- .../object-api-getobjectinfo_test.go | 2 +- {cmd => legacy}/object-api-input-checks.go | 4 +-- {cmd => legacy}/object-api-interface.go | 2 +- .../object-api-listobjects_test.go | 2 +- {cmd => legacy}/object-api-multipart_test.go | 2 +- {cmd => legacy}/object-api-putobject_test.go | 2 +- {cmd => legacy}/object-api-utils.go | 14 ++++---- {cmd => legacy}/object-api-utils_test.go | 6 ++-- {cmd => legacy}/object-handlers-common.go | 6 ++-- .../object-handlers-common_test.go | 2 +- {cmd => legacy}/object-handlers.go | 12 +++---- {cmd => legacy}/object-handlers_test.go | 6 ++-- {cmd => legacy}/object_api_suite_test.go | 2 +- {cmd => legacy}/os-dirent_fileino.go | 2 +- {cmd => legacy}/os-dirent_ino.go | 2 +- {cmd => legacy}/os-dirent_namelen_bsd.go | 2 +- {cmd => legacy}/os-dirent_namelen_linux.go | 2 +- {cmd => legacy}/os-readdir_other.go | 2 +- {cmd => legacy}/os-readdir_test.go | 2 +- {cmd => legacy}/os-readdir_unix.go | 2 +- {cmd => legacy}/os-readdir_windows.go | 2 +- {cmd => legacy}/os-reliable.go | 2 +- {cmd => legacy}/os-reliable_test.go | 2 +- {cmd => legacy}/peer-rest-client.go | 10 +++--- {cmd => legacy}/peer-rest-common.go | 2 +- {cmd => legacy}/peer-rest-server.go | 4 +-- {cmd => legacy}/policy_test.go | 2 +- {cmd => legacy}/posix-diskid-check.go | 2 +- {cmd => legacy}/posix-errors.go | 2 +- {cmd => legacy}/posix-errors_test.go | 2 +- {cmd => legacy}/posix.go | 4 +-- {cmd => legacy}/posix_test.go | 2 +- {cmd => legacy}/posix_unix_test.go | 2 +- {cmd => legacy}/posix_windows_test.go | 2 +- {cmd => legacy}/post-policy_test.go | 2 +- {cmd => legacy}/postpolicyform.go | 2 +- {cmd => legacy}/postpolicyform_test.go | 2 +- {cmd => legacy}/prepare-storage.go | 10 +++--- {cmd => legacy}/rest/client.go | 2 +- {cmd => legacy}/routers.go | 2 +- {cmd => legacy}/server-main.go | 8 ++--- {cmd => legacy}/server-main_test.go | 2 +- {cmd => legacy}/server-rlimit.go | 2 +- {cmd => legacy}/server-startup-msg.go | 6 ++-- {cmd => legacy}/server-startup-msg_test.go | 2 +- {cmd => legacy}/server_test.go | 4 +-- {cmd => legacy}/service.go | 2 +- {cmd => legacy}/setup-type.go | 2 +- {cmd => legacy}/signals.go | 4 +-- {cmd => legacy}/signature-v2.go | 4 +-- {cmd => legacy}/signature-v2_test.go | 2 +- {cmd => legacy}/signature-v4-parser.go | 2 +- {cmd => legacy}/signature-v4-parser_test.go | 2 +- {cmd => legacy}/signature-v4-utils.go | 6 ++-- {cmd => legacy}/signature-v4-utils_test.go | 4 +-- {cmd => legacy}/signature-v4.go | 4 +-- {cmd => legacy}/signature-v4_test.go | 2 +- {cmd => legacy}/storage-datatypes.go | 4 +-- {cmd => legacy}/storage-errors.go | 2 +- {cmd => legacy}/storage-interface.go | 2 +- {cmd => legacy}/storage-rest-client.go | 10 +++--- {cmd => legacy}/storage-rest-common.go | 2 +- {cmd => legacy}/storage-rest-server.go | 10 +++--- {cmd => legacy}/storage-rest_test.go | 4 +-- {cmd => legacy}/streaming-signature-v4.go | 4 +-- .../streaming-signature-v4_test.go | 2 +- {cmd => legacy}/sts-datatypes.go | 2 +- {cmd => legacy}/sts-errors.go | 6 ++-- {cmd => legacy}/sts-handlers.go | 8 ++--- {cmd => legacy}/test-utils_test.go | 8 ++--- {cmd => legacy}/tree-walk-pool.go | 2 +- {cmd => legacy}/tree-walk-pool_test.go | 2 +- {cmd => legacy}/tree-walk.go | 2 +- {cmd => legacy}/tree-walk_test.go | 2 +- {cmd => legacy}/typed-errors.go | 2 +- {cmd => legacy}/update-notifier.go | 2 +- {cmd => legacy}/update-notifier_test.go | 2 +- {cmd => legacy}/update.go | 6 ++-- {cmd => legacy}/update_test.go | 2 +- {cmd => legacy}/utils.go | 6 ++-- {cmd => legacy}/utils_test.go | 2 +- {cmd => legacy}/version_test.go | 2 +- {cmd => legacy}/web-handler-context.go | 4 +-- {cmd => legacy}/web-handler-context_test.go | 4 +-- {cmd => legacy}/web-handlers.go | 12 +++---- {cmd => legacy}/web-handlers_test.go | 4 +-- {cmd => legacy}/web-router.go | 2 +- {cmd => legacy}/xl-sets.go | 8 ++--- {cmd => legacy}/xl-sets_test.go | 2 +- {cmd => legacy}/xl-v1-bucket.go | 4 +-- {cmd => legacy}/xl-v1-common.go | 2 +- {cmd => legacy}/xl-v1-common_test.go | 2 +- {cmd => legacy}/xl-v1-errors.go | 2 +- {cmd => legacy}/xl-v1-healing-common.go | 4 +-- {cmd => legacy}/xl-v1-healing-common_test.go | 2 +- {cmd => legacy}/xl-v1-healing.go | 4 +-- {cmd => legacy}/xl-v1-healing_test.go | 2 +- {cmd => legacy}/xl-v1-list-objects-heal.go | 4 +-- {cmd => legacy}/xl-v1-list-objects.go | 2 +- {cmd => legacy}/xl-v1-metadata.go | 6 ++-- {cmd => legacy}/xl-v1-metadata_test.go | 2 +- {cmd => legacy}/xl-v1-multipart.go | 6 ++-- {cmd => legacy}/xl-v1-multipart_test.go | 2 +- {cmd => legacy}/xl-v1-object.go | 6 ++-- {cmd => legacy}/xl-v1-object_test.go | 4 +-- {cmd => legacy}/xl-v1-utils.go | 4 +-- {cmd => legacy}/xl-v1-utils_test.go | 2 +- {cmd => legacy}/xl-v1.go | 4 +-- {cmd => legacy}/xl-zones.go | 8 ++--- pkg/bucket/object/lock/lock.go | 2 +- pkg/bucket/object/lock/lock_test.go | 2 +- 390 files changed, 625 insertions(+), 627 deletions(-) rename {cmd => legacy}/acl-handlers.go (98%) rename {cmd => legacy}/admin-handlers-config-kv.go (96%) rename {cmd => legacy}/admin-handlers-users.go (99%) rename {cmd => legacy}/admin-handlers.go (99%) rename {cmd => legacy}/admin-handlers_test.go (99%) rename {cmd => legacy}/admin-heal-ops.go (99%) rename {cmd => legacy}/admin-quota-handlers.go (97%) rename {cmd => legacy}/admin-router.go (99%) rename {cmd => legacy}/admin-server-info.go (99%) rename {cmd => legacy}/api-datatypes.go (98%) rename {cmd => legacy}/api-errors.go (99%) rename {cmd => legacy}/api-errors_test.go (98%) rename {cmd => legacy}/api-headers.go (97%) rename {cmd => legacy}/api-headers_test.go (98%) rename {cmd => legacy}/api-resources.go (99%) rename {cmd => legacy}/api-resources_test.go (99%) rename {cmd => legacy}/api-response.go (99%) rename {cmd => legacy}/api-response_test.go (99%) rename {cmd => legacy}/api-router.go (99%) rename {cmd => legacy}/api-utils.go (99%) rename {cmd => legacy}/api-utils_test.go (98%) rename {cmd => legacy}/auth-handler.go (99%) rename {cmd => legacy}/auth-handler_test.go (99%) rename {cmd => legacy}/background-heal-ops.go (98%) rename {cmd => legacy}/background-newdisks-heal-ops.go (98%) rename {cmd => legacy}/benchmark-utils_test.go (99%) rename {cmd => legacy}/bitrot-streaming.go (98%) rename {cmd => legacy}/bitrot-whole.go (98%) rename {cmd => legacy}/bitrot.go (98%) rename {cmd => legacy}/bitrot_test.go (99%) rename {cmd => legacy}/bootstrap-peer-server.go (98%) rename {cmd => legacy}/bucket-encryption-handlers.go (99%) rename {cmd => legacy}/bucket-encryption.go (99%) rename {cmd => legacy}/bucket-encryption_test.go (99%) rename {cmd => legacy}/bucket-handlers.go (99%) rename {cmd => legacy}/bucket-handlers_test.go (99%) rename {cmd => legacy}/bucket-lifecycle-handlers.go (98%) rename {cmd => legacy}/bucket-lifecycle-handlers_test.go (99%) rename {cmd => legacy}/bucket-lifecycle.go (98%) rename {cmd => legacy}/bucket-listobjects-handlers.go (99%) rename {cmd => legacy}/bucket-metadata-sys.go (99%) rename {cmd => legacy}/bucket-metadata.go (99%) rename {cmd => legacy}/bucket-metadata_gen.go (99%) rename {cmd => legacy}/bucket-metadata_gen_test.go (99%) rename {cmd => legacy}/bucket-notification-handlers.go (98%) rename {cmd => legacy}/bucket-object-lock.go (99%) rename {cmd => legacy}/bucket-policy-handlers.go (99%) rename {cmd => legacy}/bucket-policy-handlers_test.go (99%) rename {cmd => legacy}/bucket-policy.go (98%) rename {cmd => legacy}/bucket-quota.go (98%) rename {cmd => legacy}/build-constants.go (98%) rename {cmd => legacy}/common-main.go (98%) rename {cmd => legacy}/config-common.go (97%) rename {cmd => legacy}/config-current.go (96%) rename {cmd => legacy}/config-current_test.go (96%) rename {cmd => legacy}/config-dir.go (99%) rename {cmd => legacy}/config-encrypted.go (98%) rename {cmd => legacy}/config-encrypted_test.go (99%) rename {cmd => legacy}/config-migrate.go (99%) rename {cmd => legacy}/config-migrate_test.go (99%) rename {cmd => legacy}/config-versions.go (98%) rename {cmd => legacy}/config.go (99%) rename {cmd => legacy}/config/api/api.go (98%) rename {cmd => legacy}/config/api/help.go (96%) rename {cmd => legacy}/config/bool-flag.go (100%) rename {cmd => legacy}/config/bool-flag_test.go (100%) rename {cmd => legacy}/config/cache/config.go (99%) rename {cmd => legacy}/config/cache/config_test.go (100%) rename {cmd => legacy}/config/cache/help.go (97%) rename {cmd => legacy}/config/cache/legacy.go (97%) rename {cmd => legacy}/config/cache/lookup.go (99%) rename {cmd => legacy}/config/certs.go (100%) rename {cmd => legacy}/config/certs_test.go (100%) rename {cmd => legacy}/config/certsinfo.go (100%) rename {cmd => legacy}/config/compress/compress.go (98%) rename {cmd => legacy}/config/compress/compress_test.go (100%) rename {cmd => legacy}/config/compress/help.go (96%) rename {cmd => legacy}/config/compress/legacy.go (97%) rename {cmd => legacy}/config/config.go (100%) rename {cmd => legacy}/config/config_test.go (100%) rename {cmd => legacy}/config/constants.go (100%) rename {cmd => legacy}/config/errors-utils.go (100%) rename {cmd => legacy}/config/errors.go (100%) rename {cmd => legacy}/config/etcd/dns/etcd_dns.go (100%) rename {cmd => legacy}/config/etcd/dns/types.go (100%) rename {cmd => legacy}/config/etcd/etcd.go (99%) rename {cmd => legacy}/config/etcd/etcd_test.go (100%) rename {cmd => legacy}/config/etcd/help.go (97%) rename {cmd => legacy}/config/help.go (100%) rename {cmd => legacy}/config/identity/ldap/config.go (99%) rename {cmd => legacy}/config/identity/ldap/help.go (98%) rename {cmd => legacy}/config/identity/ldap/legacy.go (96%) rename {cmd => legacy}/config/identity/openid/ecdsa-sha3.go (100%) rename {cmd => legacy}/config/identity/openid/help.go (97%) rename {cmd => legacy}/config/identity/openid/jwks.go (100%) rename {cmd => legacy}/config/identity/openid/jwks_test.go (100%) rename {cmd => legacy}/config/identity/openid/jwt.go (99%) rename {cmd => legacy}/config/identity/openid/jwt_test.go (100%) rename {cmd => legacy}/config/identity/openid/legacy.go (96%) rename {cmd => legacy}/config/identity/openid/rsa-sha3.go (100%) rename {cmd => legacy}/config/identity/openid/validators.go (100%) rename {cmd => legacy}/config/identity/openid/validators_test.go (100%) rename {cmd => legacy}/config/legacy.go (100%) rename {cmd => legacy}/config/notify/config.go (100%) rename {cmd => legacy}/config/notify/help.go (99%) rename {cmd => legacy}/config/notify/legacy.go (99%) rename {cmd => legacy}/config/notify/parse.go (99%) rename {cmd => legacy}/config/policy/opa/config.go (99%) rename {cmd => legacy}/config/policy/opa/help.go (96%) rename {cmd => legacy}/config/policy/opa/legacy.go (96%) rename {cmd => legacy}/config/storageclass/help.go (96%) rename {cmd => legacy}/config/storageclass/legacy.go (96%) rename {cmd => legacy}/config/storageclass/storage-class.go (99%) rename {cmd => legacy}/config/storageclass/storage-class_test.go (100%) rename {cmd => legacy}/consolelogger.go (95%) rename {cmd => legacy}/copy-part-range.go (99%) rename {cmd => legacy}/copy-part-range_test.go (99%) rename {cmd => legacy}/crossdomain-xml-handler.go (99%) rename {cmd => legacy}/crossdomain-xml-handler_test.go (98%) rename {cmd => legacy}/crypto/config.go (99%) rename {cmd => legacy}/crypto/doc.go (100%) rename {cmd => legacy}/crypto/error.go (100%) rename {cmd => legacy}/crypto/header.go (100%) rename {cmd => legacy}/crypto/header_test.go (100%) rename {cmd => legacy}/crypto/help.go (98%) rename {cmd => legacy}/crypto/kes.go (99%) rename {cmd => legacy}/crypto/key.go (99%) rename {cmd => legacy}/crypto/key_test.go (99%) rename {cmd => legacy}/crypto/kms.go (99%) rename {cmd => legacy}/crypto/kms_test.go (100%) rename {cmd => legacy}/crypto/legacy.go (99%) rename {cmd => legacy}/crypto/metadata.go (99%) rename {cmd => legacy}/crypto/metadata_test.go (99%) rename {cmd => legacy}/crypto/parse.go (100%) rename {cmd => legacy}/crypto/parse_test.go (100%) rename {cmd => legacy}/crypto/retry.go (100%) rename {cmd => legacy}/crypto/sse.go (99%) rename {cmd => legacy}/crypto/sse_test.go (100%) rename {cmd => legacy}/crypto/vault.go (100%) rename {cmd => legacy}/crypto/vault_test.go (100%) rename {cmd => legacy}/data-crawler.go (99%) rename {cmd => legacy}/data-update-tracker.go (99%) rename {cmd => legacy}/data-update-tracker_test.go (98%) rename {cmd => legacy}/data-usage-cache.go (99%) rename {cmd => legacy}/data-usage-cache_gen.go (99%) rename {cmd => legacy}/data-usage-cache_gen_test.go (99%) rename {cmd => legacy}/data-usage.go (98%) rename {cmd => legacy}/data-usage_test.go (99%) rename {cmd => legacy}/disk-cache-backend.go (99%) rename {cmd => legacy}/disk-cache-check-support_other.go (98%) rename {cmd => legacy}/disk-cache-check-support_windows.go (98%) rename {cmd => legacy}/disk-cache-stats.go (99%) rename {cmd => legacy}/disk-cache-utils.go (99%) rename {cmd => legacy}/disk-cache-utils_test.go (99%) rename {cmd => legacy}/disk-cache.go (99%) rename {cmd => legacy}/disk-cache_test.go (99%) rename {cmd => legacy}/dummy-data-generator_test.go (99%) rename {cmd => legacy}/dummy-handlers.go (99%) rename {cmd => legacy}/dynamic-timeouts.go (99%) rename {cmd => legacy}/dynamic-timeouts_test.go (99%) rename {cmd => legacy}/encryption-v1.go (99%) rename {cmd => legacy}/encryption-v1_test.go (99%) rename {cmd => legacy}/endpoint-ellipses.go (99%) rename {cmd => legacy}/endpoint-ellipses_test.go (99%) rename {cmd => legacy}/endpoint.go (99%) rename {cmd => legacy}/endpoint_test.go (99%) rename {cmd => legacy}/erasure-decode.go (99%) rename {cmd => legacy}/erasure-decode_test.go (99%) rename {cmd => legacy}/erasure-encode.go (98%) rename {cmd => legacy}/erasure-encode_test.go (99%) rename {cmd => legacy}/erasure-heal.go (96%) rename {cmd => legacy}/erasure-heal_test.go (99%) rename {cmd => legacy}/erasure-utils.go (98%) rename {cmd => legacy}/erasure.go (98%) rename {cmd => legacy}/erasure_test.go (99%) rename {cmd => legacy}/etcd.go (99%) rename {cmd => legacy}/fallocate.go (98%) rename {cmd => legacy}/fallocate_linux.go (98%) rename {cmd => legacy}/fallocate_linux_test.go (98%) rename {cmd => legacy}/fastwalk.go (98%) rename {cmd => legacy}/format-disk-cache.go (99%) rename {cmd => legacy}/format-disk-cache_test.go (99%) rename {cmd => legacy}/format-fs.go (99%) rename {cmd => legacy}/format-fs_test.go (99%) rename {cmd => legacy}/format-meta.go (99%) rename {cmd => legacy}/format-xl.go (99%) rename {cmd => legacy}/format-xl_test.go (99%) rename {cmd => legacy}/fs-v1-helpers.go (99%) rename {cmd => legacy}/fs-v1-helpers_test.go (99%) rename {cmd => legacy}/fs-v1-metadata.go (98%) rename {cmd => legacy}/fs-v1-metadata_test.go (99%) rename {cmd => legacy}/fs-v1-multipart.go (99%) rename {cmd => legacy}/fs-v1-multipart_test.go (99%) rename {cmd => legacy}/fs-v1-rwpool.go (99%) rename {cmd => legacy}/fs-v1-rwpool_test.go (99%) rename {cmd => legacy}/fs-v1.go (99%) rename {cmd => legacy}/fs-v1_test.go (99%) rename {cmd => legacy}/gateway-common.go (98%) rename {cmd => legacy}/gateway-common_test.go (98%) rename {cmd => legacy}/gateway-env.go (98%) rename {cmd => legacy}/gateway-interface.go (98%) rename {cmd => legacy}/gateway-main.go (98%) rename {cmd => legacy}/gateway-main_test.go (99%) rename {cmd => legacy}/gateway-metrics.go (99%) rename {cmd => legacy}/gateway-startup-msg.go (99%) rename {cmd => legacy}/gateway-startup-msg_test.go (98%) rename {cmd => legacy}/gateway-unsupported.go (99%) rename {cmd => legacy}/generic-handlers.go (99%) rename {cmd => legacy}/generic-handlers_test.go (99%) rename {cmd => legacy}/global-heal.go (99%) rename {cmd => legacy}/globals.go (95%) rename {cmd => legacy}/handler-api.go (97%) rename {cmd => legacy}/handler-utils.go (99%) rename {cmd => legacy}/handler-utils_test.go (99%) rename {cmd => legacy}/hasher.go (98%) rename {cmd => legacy}/healthcheck-handler.go (99%) rename {cmd => legacy}/healthcheck-router.go (99%) rename {cmd => legacy}/http-stats.go (98%) rename {cmd => legacy}/http-tracer.go (97%) rename {cmd => legacy}/http/close.go (100%) rename {cmd => legacy}/http/dial_linux.go (100%) rename {cmd => legacy}/http/dial_others.go (100%) rename {cmd => legacy}/http/headers.go (100%) rename {cmd => legacy}/http/listen_nix.go (100%) rename {cmd => legacy}/http/listen_others.go (100%) rename {cmd => legacy}/http/listener.go (100%) rename {cmd => legacy}/http/listener_test.go (100%) rename {cmd => legacy}/http/server.go (100%) rename {cmd => legacy}/http/server_test.go (100%) rename {cmd => legacy}/http/stats/http-traffic-recorder.go (100%) rename {cmd => legacy}/httprange.go (99%) rename {cmd => legacy}/httprange_test.go (99%) rename {cmd => legacy}/iam-etcd-store.go (99%) rename {cmd => legacy}/iam-object-store.go (99%) rename {cmd => legacy}/iam.go (99%) rename {cmd => legacy}/jwt.go (98%) rename {cmd => legacy}/jwt/parser.go (100%) rename {cmd => legacy}/jwt/parser_test.go (100%) rename {cmd => legacy}/jwt_test.go (98%) rename {cmd => legacy}/leak-detect_test.go (99%) rename {cmd => legacy}/local-locker.go (99%) rename {cmd => legacy}/lock-rest-client.go (96%) rename {cmd => legacy}/lock-rest-client_test.go (98%) rename {cmd => legacy}/lock-rest-server-common.go (98%) rename {cmd => legacy}/lock-rest-server-common_test.go (99%) rename {cmd => legacy}/lock-rest-server.go (99%) rename {cmd => legacy}/logger/audit.go (98%) rename {cmd => legacy}/logger/config.go (99%) rename {cmd => legacy}/logger/console.go (98%) rename {cmd => legacy}/logger/help.go (97%) rename {cmd => legacy}/logger/legacy.go (97%) rename {cmd => legacy}/logger/logger.go (99%) rename {cmd => legacy}/logger/logonce.go (100%) rename {cmd => legacy}/logger/message/audit/entry.go (98%) rename {cmd => legacy}/logger/message/log/entry.go (100%) rename {cmd => legacy}/logger/reqinfo.go (100%) rename {cmd => legacy}/logger/target/console/console.go (97%) rename {cmd => legacy}/logger/target/http/http.go (98%) rename {cmd => legacy}/logger/targets.go (100%) rename {cmd => legacy}/logger/utils.go (100%) rename {cmd => legacy}/main.go (99%) rename {cmd => legacy}/merge-walk-pool.go (99%) rename {cmd => legacy}/merge-walk-pool_test.go (99%) rename {cmd => legacy}/metrics-router.go (99%) rename {cmd => legacy}/metrics.go (99%) rename {cmd => legacy}/namespace-lock.go (98%) rename {cmd => legacy}/namespace-lock_test.go (99%) rename {cmd => legacy}/naughty-disk_test.go (99%) rename {cmd => legacy}/net.go (99%) rename {cmd => legacy}/net_test.go (99%) rename {cmd => legacy}/notification.go (99%) rename {cmd => legacy}/obdinfo.go (99%) rename {cmd => legacy}/obdinfo_other.go (99%) rename {cmd => legacy}/obdinfo_unix.go (98%) rename {cmd => legacy}/object-api-common.go (99%) rename {cmd => legacy}/object-api-datatypes.go (99%) rename {cmd => legacy}/object-api-deleteobject_test.go (99%) rename {cmd => legacy}/object-api-errors.go (99%) rename {cmd => legacy}/object-api-getobject_test.go (99%) rename {cmd => legacy}/object-api-getobjectinfo_test.go (99%) rename {cmd => legacy}/object-api-input-checks.go (99%) rename {cmd => legacy}/object-api-interface.go (99%) rename {cmd => legacy}/object-api-listobjects_test.go (99%) rename {cmd => legacy}/object-api-multipart_test.go (99%) rename {cmd => legacy}/object-api-putobject_test.go (99%) rename {cmd => legacy}/object-api-utils.go (98%) rename {cmd => legacy}/object-api-utils_test.go (99%) rename {cmd => legacy}/object-handlers-common.go (99%) rename {cmd => legacy}/object-handlers-common_test.go (98%) rename {cmd => legacy}/object-handlers.go (99%) rename {cmd => legacy}/object-handlers_test.go (99%) rename {cmd => legacy}/object_api_suite_test.go (99%) rename {cmd => legacy}/os-dirent_fileino.go (98%) rename {cmd => legacy}/os-dirent_ino.go (98%) rename {cmd => legacy}/os-dirent_namelen_bsd.go (98%) rename {cmd => legacy}/os-dirent_namelen_linux.go (98%) rename {cmd => legacy}/os-readdir_other.go (99%) rename {cmd => legacy}/os-readdir_test.go (99%) rename {cmd => legacy}/os-readdir_unix.go (99%) rename {cmd => legacy}/os-readdir_windows.go (99%) rename {cmd => legacy}/os-reliable.go (99%) rename {cmd => legacy}/os-reliable_test.go (99%) rename {cmd => legacy}/peer-rest-client.go (99%) rename {cmd => legacy}/peer-rest-common.go (99%) rename {cmd => legacy}/peer-rest-server.go (99%) rename {cmd => legacy}/policy_test.go (99%) rename {cmd => legacy}/posix-diskid-check.go (99%) rename {cmd => legacy}/posix-errors.go (99%) rename {cmd => legacy}/posix-errors_test.go (99%) rename {cmd => legacy}/posix.go (99%) rename {cmd => legacy}/posix_test.go (99%) rename {cmd => legacy}/posix_unix_test.go (99%) rename {cmd => legacy}/posix_windows_test.go (99%) rename {cmd => legacy}/post-policy_test.go (99%) rename {cmd => legacy}/postpolicyform.go (99%) rename {cmd => legacy}/postpolicyform_test.go (99%) rename {cmd => legacy}/prepare-storage.go (98%) rename {cmd => legacy}/rest/client.go (99%) rename {cmd => legacy}/routers.go (99%) rename {cmd => legacy}/server-main.go (99%) rename {cmd => legacy}/server-main_test.go (99%) rename {cmd => legacy}/server-rlimit.go (99%) rename {cmd => legacy}/server-startup-msg.go (99%) rename {cmd => legacy}/server-startup-msg_test.go (99%) rename {cmd => legacy}/server_test.go (99%) rename {cmd => legacy}/service.go (99%) rename {cmd => legacy}/setup-type.go (98%) rename {cmd => legacy}/signals.go (97%) rename {cmd => legacy}/signature-v2.go (99%) rename {cmd => legacy}/signature-v2_test.go (99%) rename {cmd => legacy}/signature-v4-parser.go (99%) rename {cmd => legacy}/signature-v4-parser_test.go (99%) rename {cmd => legacy}/signature-v4-utils.go (98%) rename {cmd => legacy}/signature-v4-utils_test.go (99%) rename {cmd => legacy}/signature-v4.go (99%) rename {cmd => legacy}/signature-v4_test.go (99%) rename {cmd => legacy}/storage-datatypes.go (97%) rename {cmd => legacy}/storage-errors.go (99%) rename {cmd => legacy}/storage-interface.go (99%) rename {cmd => legacy}/storage-rest-client.go (98%) rename {cmd => legacy}/storage-rest-common.go (99%) rename {cmd => legacy}/storage-rest-server.go (99%) rename {cmd => legacy}/storage-rest_test.go (99%) rename {cmd => legacy}/streaming-signature-v4.go (99%) rename {cmd => legacy}/streaming-signature-v4_test.go (99%) rename {cmd => legacy}/sts-datatypes.go (99%) rename {cmd => legacy}/sts-errors.go (98%) rename {cmd => legacy}/sts-handlers.go (99%) rename {cmd => legacy}/test-utils_test.go (99%) rename {cmd => legacy}/tree-walk-pool.go (99%) rename {cmd => legacy}/tree-walk-pool_test.go (99%) rename {cmd => legacy}/tree-walk.go (99%) rename {cmd => legacy}/tree-walk_test.go (99%) rename {cmd => legacy}/typed-errors.go (99%) rename {cmd => legacy}/update-notifier.go (99%) rename {cmd => legacy}/update-notifier_test.go (99%) rename {cmd => legacy}/update.go (99%) rename {cmd => legacy}/update_test.go (99%) rename {cmd => legacy}/utils.go (99%) rename {cmd => legacy}/utils_test.go (99%) rename {cmd => legacy}/version_test.go (98%) rename {cmd => legacy}/web-handler-context.go (99%) rename {cmd => legacy}/web-handler-context_test.go (97%) rename {cmd => legacy}/web-handlers.go (99%) rename {cmd => legacy}/web-handlers_test.go (99%) rename {cmd => legacy}/web-router.go (99%) rename {cmd => legacy}/xl-sets.go (99%) rename {cmd => legacy}/xl-sets_test.go (99%) rename {cmd => legacy}/xl-v1-bucket.go (99%) rename {cmd => legacy}/xl-v1-common.go (99%) rename {cmd => legacy}/xl-v1-common_test.go (99%) rename {cmd => legacy}/xl-v1-errors.go (98%) rename {cmd => legacy}/xl-v1-healing-common.go (99%) rename {cmd => legacy}/xl-v1-healing-common_test.go (99%) rename {cmd => legacy}/xl-v1-healing.go (99%) rename {cmd => legacy}/xl-v1-healing_test.go (99%) rename {cmd => legacy}/xl-v1-list-objects-heal.go (96%) rename {cmd => legacy}/xl-v1-list-objects.go (98%) rename {cmd => legacy}/xl-v1-metadata.go (99%) rename {cmd => legacy}/xl-v1-metadata_test.go (99%) rename {cmd => legacy}/xl-v1-multipart.go (99%) rename {cmd => legacy}/xl-v1-multipart_test.go (99%) rename {cmd => legacy}/xl-v1-object.go (99%) rename {cmd => legacy}/xl-v1-object_test.go (99%) rename {cmd => legacy}/xl-v1-utils.go (99%) rename {cmd => legacy}/xl-v1-utils_test.go (99%) rename {cmd => legacy}/xl-v1.go (99%) rename {cmd => legacy}/xl-zones.go (99%) diff --git a/cmd/acl-handlers.go b/legacy/acl-handlers.go similarity index 98% rename from cmd/acl-handlers.go rename to legacy/acl-handlers.go index 931b4490..8bb7c4cb 100644 --- a/cmd/acl-handlers.go +++ b/legacy/acl-handlers.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "encoding/xml" @@ -23,8 +23,8 @@ import ( "net/url" "github.com/gorilla/mux" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/bucket/policy" ) diff --git a/cmd/admin-handlers-config-kv.go b/legacy/admin-handlers-config-kv.go similarity index 96% rename from cmd/admin-handlers-config-kv.go rename to legacy/admin-handlers-config-kv.go index 89ffa942..052679e5 100644 --- a/cmd/admin-handlers-config-kv.go +++ b/legacy/admin-handlers-config-kv.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -26,15 +26,15 @@ import ( "strings" "github.com/gorilla/mux" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/config/cache" - "github.com/minio/minio/cmd/config/etcd" - xldap "github.com/minio/minio/cmd/config/identity/ldap" - "github.com/minio/minio/cmd/config/identity/openid" - "github.com/minio/minio/cmd/config/policy/opa" - "github.com/minio/minio/cmd/config/storageclass" - "github.com/minio/minio/cmd/crypto" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/config/cache" + "github.com/minio/minio/legacy/config/etcd" + xldap "github.com/minio/minio/legacy/config/identity/ldap" + "github.com/minio/minio/legacy/config/identity/openid" + "github.com/minio/minio/legacy/config/policy/opa" + "github.com/minio/minio/legacy/config/storageclass" + "github.com/minio/minio/legacy/crypto" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" iampolicy "github.com/minio/minio/pkg/iam/policy" "github.com/minio/minio/pkg/madmin" diff --git a/cmd/admin-handlers-users.go b/legacy/admin-handlers-users.go similarity index 99% rename from cmd/admin-handlers-users.go rename to legacy/admin-handlers-users.go index 3aff7074..b433185d 100644 --- a/cmd/admin-handlers-users.go +++ b/legacy/admin-handlers-users.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -24,7 +24,7 @@ import ( "net/http" "github.com/gorilla/mux" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" iampolicy "github.com/minio/minio/pkg/iam/policy" "github.com/minio/minio/pkg/madmin" diff --git a/cmd/admin-handlers.go b/legacy/admin-handlers.go similarity index 99% rename from cmd/admin-handlers.go rename to legacy/admin-handlers.go index 3b321b54..c86b89e6 100644 --- a/cmd/admin-handlers.go +++ b/legacy/admin-handlers.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -36,12 +36,12 @@ import ( "github.com/gorilla/mux" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/config/notify" - "github.com/minio/minio/cmd/crypto" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" - "github.com/minio/minio/cmd/logger/message/log" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/config/notify" + "github.com/minio/minio/legacy/crypto" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" + "github.com/minio/minio/legacy/logger/message/log" "github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/handlers" iampolicy "github.com/minio/minio/pkg/iam/policy" diff --git a/cmd/admin-handlers_test.go b/legacy/admin-handlers_test.go similarity index 99% rename from cmd/admin-handlers_test.go rename to legacy/admin-handlers_test.go index 5955a50e..8ed9fd56 100644 --- a/cmd/admin-handlers_test.go +++ b/legacy/admin-handlers_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/admin-heal-ops.go b/legacy/admin-heal-ops.go similarity index 99% rename from cmd/admin-heal-ops.go rename to legacy/admin-heal-ops.go index 19a8b65d..7623bf88 100644 --- a/cmd/admin-heal-ops.go +++ b/legacy/admin-heal-ops.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -25,7 +25,7 @@ import ( "sync" "time" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/madmin" ) diff --git a/cmd/admin-quota-handlers.go b/legacy/admin-quota-handlers.go similarity index 97% rename from cmd/admin-quota-handlers.go rename to legacy/admin-quota-handlers.go index 3a65d711..9590c38c 100644 --- a/cmd/admin-quota-handlers.go +++ b/legacy/admin-quota-handlers.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "encoding/json" @@ -22,8 +22,8 @@ import ( "net/http" "github.com/gorilla/mux" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/env" iampolicy "github.com/minio/minio/pkg/iam/policy" ) diff --git a/cmd/admin-router.go b/legacy/admin-router.go similarity index 99% rename from cmd/admin-router.go rename to legacy/admin-router.go index f3c87733..bd218a9f 100644 --- a/cmd/admin-router.go +++ b/legacy/admin-router.go @@ -14,13 +14,13 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" "github.com/gorilla/mux" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" "github.com/minio/minio/pkg/env" "github.com/minio/minio/pkg/madmin" ) diff --git a/cmd/admin-server-info.go b/legacy/admin-server-info.go similarity index 99% rename from cmd/admin-server-info.go rename to legacy/admin-server-info.go index d6f56265..6696b327 100644 --- a/cmd/admin-server-info.go +++ b/legacy/admin-server-info.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" diff --git a/cmd/api-datatypes.go b/legacy/api-datatypes.go similarity index 98% rename from cmd/api-datatypes.go rename to legacy/api-datatypes.go index 59f2fd41..384a078e 100644 --- a/cmd/api-datatypes.go +++ b/legacy/api-datatypes.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "encoding/xml" diff --git a/cmd/api-errors.go b/legacy/api-errors.go similarity index 99% rename from cmd/api-errors.go rename to legacy/api-errors.go index 3d334d9c..232d2ec9 100644 --- a/cmd/api-errors.go +++ b/legacy/api-errors.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -29,9 +29,9 @@ import ( minio "github.com/minio/minio-go/v6" "github.com/minio/minio-go/v6/pkg/tags" - "github.com/minio/minio/cmd/config/etcd/dns" - "github.com/minio/minio/cmd/crypto" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config/etcd/dns" + "github.com/minio/minio/legacy/crypto" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/bucket/lifecycle" objectlock "github.com/minio/minio/pkg/bucket/object/lock" diff --git a/cmd/api-errors_test.go b/legacy/api-errors_test.go similarity index 98% rename from cmd/api-errors_test.go rename to legacy/api-errors_test.go index dab7a811..86f24f57 100644 --- a/cmd/api-errors_test.go +++ b/legacy/api-errors_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -23,7 +23,7 @@ import ( "path/filepath" "testing" - "github.com/minio/minio/cmd/crypto" + "github.com/minio/minio/legacy/crypto" "github.com/minio/minio/pkg/hash" ) diff --git a/cmd/api-headers.go b/legacy/api-headers.go similarity index 97% rename from cmd/api-headers.go rename to legacy/api-headers.go index a9b8031d..a5d1a3d9 100644 --- a/cmd/api-headers.go +++ b/legacy/api-headers.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -27,8 +27,8 @@ import ( "strings" "time" - "github.com/minio/minio/cmd/crypto" - xhttp "github.com/minio/minio/cmd/http" + "github.com/minio/minio/legacy/crypto" + xhttp "github.com/minio/minio/legacy/http" ) // Returns a hexadecimal representation of time at the diff --git a/cmd/api-headers_test.go b/legacy/api-headers_test.go similarity index 98% rename from cmd/api-headers_test.go rename to legacy/api-headers_test.go index 26ca9198..f85408a1 100644 --- a/cmd/api-headers_test.go +++ b/legacy/api-headers_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "testing" diff --git a/cmd/api-resources.go b/legacy/api-resources.go similarity index 99% rename from cmd/api-resources.go rename to legacy/api-resources.go index d3f1eaa9..7588971a 100644 --- a/cmd/api-resources.go +++ b/legacy/api-resources.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "encoding/base64" diff --git a/cmd/api-resources_test.go b/legacy/api-resources_test.go similarity index 99% rename from cmd/api-resources_test.go rename to legacy/api-resources_test.go index a2102665..b8760681 100644 --- a/cmd/api-resources_test.go +++ b/legacy/api-resources_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/url" diff --git a/cmd/api-response.go b/legacy/api-response.go similarity index 99% rename from cmd/api-response.go rename to legacy/api-response.go index b5bbc117..89de23a7 100644 --- a/cmd/api-response.go +++ b/legacy/api-response.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -27,8 +27,8 @@ import ( "strings" "time" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/handlers" ) diff --git a/cmd/api-response_test.go b/legacy/api-response_test.go similarity index 99% rename from cmd/api-response_test.go rename to legacy/api-response_test.go index 76c70f19..9dc0a36b 100644 --- a/cmd/api-response_test.go +++ b/legacy/api-response_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" diff --git a/cmd/api-router.go b/legacy/api-router.go similarity index 99% rename from cmd/api-router.go rename to legacy/api-router.go index 4011c9aa..ffecfd7a 100644 --- a/cmd/api-router.go +++ b/legacy/api-router.go @@ -14,13 +14,13 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" "github.com/gorilla/mux" - xhttp "github.com/minio/minio/cmd/http" + xhttp "github.com/minio/minio/legacy/http" ) func newHTTPServerFn() *xhttp.Server { diff --git a/cmd/api-utils.go b/legacy/api-utils.go similarity index 99% rename from cmd/api-utils.go rename to legacy/api-utils.go index 0e370b1b..613a412d 100644 --- a/cmd/api-utils.go +++ b/legacy/api-utils.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "strings" diff --git a/cmd/api-utils_test.go b/legacy/api-utils_test.go similarity index 98% rename from cmd/api-utils_test.go rename to legacy/api-utils_test.go index 0ef81796..5ecec054 100644 --- a/cmd/api-utils_test.go +++ b/legacy/api-utils_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" diff --git a/cmd/auth-handler.go b/legacy/auth-handler.go similarity index 99% rename from cmd/auth-handler.go rename to legacy/auth-handler.go index 8b133e42..0d66d768 100644 --- a/cmd/auth-handler.go +++ b/legacy/auth-handler.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -30,9 +30,9 @@ import ( "strings" "time" - xhttp "github.com/minio/minio/cmd/http" - xjwt "github.com/minio/minio/cmd/jwt" - "github.com/minio/minio/cmd/logger" + xhttp "github.com/minio/minio/legacy/http" + xjwt "github.com/minio/minio/legacy/jwt" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" objectlock "github.com/minio/minio/pkg/bucket/object/lock" "github.com/minio/minio/pkg/bucket/policy" diff --git a/cmd/auth-handler_test.go b/legacy/auth-handler_test.go similarity index 99% rename from cmd/auth-handler_test.go rename to legacy/auth-handler_test.go index 92e72e85..417fb9ef 100644 --- a/cmd/auth-handler_test.go +++ b/legacy/auth-handler_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/background-heal-ops.go b/legacy/background-heal-ops.go similarity index 98% rename from cmd/background-heal-ops.go rename to legacy/background-heal-ops.go index b7d6b142..96bb19d0 100644 --- a/cmd/background-heal-ops.go +++ b/legacy/background-heal-ops.go @@ -14,13 +14,13 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" "time" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/madmin" ) diff --git a/cmd/background-newdisks-heal-ops.go b/legacy/background-newdisks-heal-ops.go similarity index 98% rename from cmd/background-newdisks-heal-ops.go rename to legacy/background-newdisks-heal-ops.go index 5bfc86fd..99900c6b 100644 --- a/cmd/background-newdisks-heal-ops.go +++ b/legacy/background-newdisks-heal-ops.go @@ -14,13 +14,13 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" "time" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" ) const defaultMonitorNewDiskInterval = time.Minute * 10 diff --git a/cmd/benchmark-utils_test.go b/legacy/benchmark-utils_test.go similarity index 99% rename from cmd/benchmark-utils_test.go rename to legacy/benchmark-utils_test.go index c1377287..52035255 100644 --- a/cmd/benchmark-utils_test.go +++ b/legacy/benchmark-utils_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/bitrot-streaming.go b/legacy/bitrot-streaming.go similarity index 98% rename from cmd/bitrot-streaming.go rename to legacy/bitrot-streaming.go index b05fbe17..21dd521d 100644 --- a/cmd/bitrot-streaming.go +++ b/legacy/bitrot-streaming.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -23,7 +23,7 @@ import ( "hash" "io" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" ) type errHashMismatch struct { diff --git a/cmd/bitrot-whole.go b/legacy/bitrot-whole.go similarity index 98% rename from cmd/bitrot-whole.go rename to legacy/bitrot-whole.go index fc016b56..19c2eb7e 100644 --- a/cmd/bitrot-whole.go +++ b/legacy/bitrot-whole.go @@ -14,13 +14,13 @@ * limitations under the License. */ -package cmd +package legacy import ( "hash" "io" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" ) // Implementation to calculate bitrot for the whole file. diff --git a/cmd/bitrot.go b/legacy/bitrot.go similarity index 98% rename from cmd/bitrot.go rename to legacy/bitrot.go index bfdecfbd..cd61b357 100644 --- a/cmd/bitrot.go +++ b/legacy/bitrot.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "errors" @@ -22,7 +22,7 @@ import ( "io" "github.com/minio/highwayhash" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" sha256 "github.com/minio/sha256-simd" "golang.org/x/crypto/blake2b" ) diff --git a/cmd/bitrot_test.go b/legacy/bitrot_test.go similarity index 99% rename from cmd/bitrot_test.go rename to legacy/bitrot_test.go index 78cf9dc5..b4bb0937 100644 --- a/cmd/bitrot_test.go +++ b/legacy/bitrot_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "io" diff --git a/cmd/bootstrap-peer-server.go b/legacy/bootstrap-peer-server.go similarity index 98% rename from cmd/bootstrap-peer-server.go rename to legacy/bootstrap-peer-server.go index 4692d15a..971f85bc 100644 --- a/cmd/bootstrap-peer-server.go +++ b/legacy/bootstrap-peer-server.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -30,9 +30,9 @@ import ( "github.com/gorilla/mux" "github.com/minio/minio-go/v6/pkg/set" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" - "github.com/minio/minio/cmd/rest" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" + "github.com/minio/minio/legacy/rest" ) const ( diff --git a/cmd/bucket-encryption-handlers.go b/legacy/bucket-encryption-handlers.go similarity index 99% rename from cmd/bucket-encryption-handlers.go rename to legacy/bucket-encryption-handlers.go index 866ba207..aea3ca71 100644 --- a/cmd/bucket-encryption-handlers.go +++ b/legacy/bucket-encryption-handlers.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "encoding/xml" @@ -23,7 +23,7 @@ import ( "net/http" "github.com/gorilla/mux" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/bucket/policy" ) diff --git a/cmd/bucket-encryption.go b/legacy/bucket-encryption.go similarity index 99% rename from cmd/bucket-encryption.go rename to legacy/bucket-encryption.go index b5504c90..4d574d44 100644 --- a/cmd/bucket-encryption.go +++ b/legacy/bucket-encryption.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "errors" diff --git a/cmd/bucket-encryption_test.go b/legacy/bucket-encryption_test.go similarity index 99% rename from cmd/bucket-encryption_test.go rename to legacy/bucket-encryption_test.go index 25548caf..5d438076 100644 --- a/cmd/bucket-encryption_test.go +++ b/legacy/bucket-encryption_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/bucket-handlers.go b/legacy/bucket-handlers.go similarity index 99% rename from cmd/bucket-handlers.go rename to legacy/bucket-handlers.go index ce0ca1af..20d714d9 100644 --- a/cmd/bucket-handlers.go +++ b/legacy/bucket-handlers.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "encoding/base64" @@ -28,13 +28,12 @@ import ( "strings" "github.com/gorilla/mux" - "github.com/minio/minio-go/v6/pkg/set" "github.com/minio/minio-go/v6/pkg/tags" - "github.com/minio/minio/cmd/config/etcd/dns" - "github.com/minio/minio/cmd/crypto" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config/etcd/dns" + "github.com/minio/minio/legacy/crypto" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" objectlock "github.com/minio/minio/pkg/bucket/object/lock" "github.com/minio/minio/pkg/bucket/policy" "github.com/minio/minio/pkg/event" diff --git a/cmd/bucket-handlers_test.go b/legacy/bucket-handlers_test.go similarity index 99% rename from cmd/bucket-handlers_test.go rename to legacy/bucket-handlers_test.go index 3f4f8070..c6b6ae3a 100644 --- a/cmd/bucket-handlers_test.go +++ b/legacy/bucket-handlers_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/bucket-lifecycle-handlers.go b/legacy/bucket-lifecycle-handlers.go similarity index 98% rename from cmd/bucket-lifecycle-handlers.go rename to legacy/bucket-lifecycle-handlers.go index bd381b2c..445b031c 100644 --- a/cmd/bucket-lifecycle-handlers.go +++ b/legacy/bucket-lifecycle-handlers.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "encoding/xml" @@ -22,8 +22,8 @@ import ( "net/http" "github.com/gorilla/mux" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/bucket/lifecycle" "github.com/minio/minio/pkg/bucket/policy" ) diff --git a/cmd/bucket-lifecycle-handlers_test.go b/legacy/bucket-lifecycle-handlers_test.go similarity index 99% rename from cmd/bucket-lifecycle-handlers_test.go rename to legacy/bucket-lifecycle-handlers_test.go index 3af5daf0..86512e43 100644 --- a/cmd/bucket-lifecycle-handlers_test.go +++ b/legacy/bucket-lifecycle-handlers_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/bucket-lifecycle.go b/legacy/bucket-lifecycle.go similarity index 98% rename from cmd/bucket-lifecycle.go rename to legacy/bucket-lifecycle.go index fd7c9f6d..f8a81d9c 100644 --- a/cmd/bucket-lifecycle.go +++ b/legacy/bucket-lifecycle.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "github.com/minio/minio/pkg/bucket/lifecycle" diff --git a/cmd/bucket-listobjects-handlers.go b/legacy/bucket-listobjects-handlers.go similarity index 99% rename from cmd/bucket-listobjects-handlers.go rename to legacy/bucket-listobjects-handlers.go index ad03b1fd..0c4ccfff 100644 --- a/cmd/bucket-listobjects-handlers.go +++ b/legacy/bucket-listobjects-handlers.go @@ -14,16 +14,15 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" "strings" "github.com/gorilla/mux" - "github.com/minio/minio/cmd/crypto" - "github.com/minio/minio/cmd/logger" - + "github.com/minio/minio/legacy/crypto" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/bucket/policy" ) diff --git a/cmd/bucket-metadata-sys.go b/legacy/bucket-metadata-sys.go similarity index 99% rename from cmd/bucket-metadata-sys.go rename to legacy/bucket-metadata-sys.go index 6ee467c7..6d7d9ceb 100644 --- a/cmd/bucket-metadata-sys.go +++ b/legacy/bucket-metadata-sys.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/bucket-metadata.go b/legacy/bucket-metadata.go similarity index 99% rename from cmd/bucket-metadata.go rename to legacy/bucket-metadata.go index 6db13678..78da91c5 100644 --- a/cmd/bucket-metadata.go +++ b/legacy/bucket-metadata.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -27,7 +27,7 @@ import ( "time" "github.com/minio/minio-go/v6/pkg/tags" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" bucketsse "github.com/minio/minio/pkg/bucket/encryption" "github.com/minio/minio/pkg/bucket/lifecycle" objectlock "github.com/minio/minio/pkg/bucket/object/lock" diff --git a/cmd/bucket-metadata_gen.go b/legacy/bucket-metadata_gen.go similarity index 99% rename from cmd/bucket-metadata_gen.go rename to legacy/bucket-metadata_gen.go index 5ec12ebd..390886d1 100644 --- a/cmd/bucket-metadata_gen.go +++ b/legacy/bucket-metadata_gen.go @@ -1,4 +1,4 @@ -package cmd +package legacy // Code generated by github.com/tinylib/msgp DO NOT EDIT. diff --git a/cmd/bucket-metadata_gen_test.go b/legacy/bucket-metadata_gen_test.go similarity index 99% rename from cmd/bucket-metadata_gen_test.go rename to legacy/bucket-metadata_gen_test.go index 066a68d1..203e6745 100644 --- a/cmd/bucket-metadata_gen_test.go +++ b/legacy/bucket-metadata_gen_test.go @@ -1,4 +1,4 @@ -package cmd +package legacy // Code generated by github.com/tinylib/msgp DO NOT EDIT. diff --git a/cmd/bucket-notification-handlers.go b/legacy/bucket-notification-handlers.go similarity index 98% rename from cmd/bucket-notification-handlers.go rename to legacy/bucket-notification-handlers.go index 36367d32..ec31a3ad 100644 --- a/cmd/bucket-notification-handlers.go +++ b/legacy/bucket-notification-handlers.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "encoding/json" @@ -25,8 +25,8 @@ import ( "time" "github.com/gorilla/mux" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/bucket/policy" "github.com/minio/minio/pkg/event" ) diff --git a/cmd/bucket-object-lock.go b/legacy/bucket-object-lock.go similarity index 99% rename from cmd/bucket-object-lock.go rename to legacy/bucket-object-lock.go index 73b10357..1652ce34 100644 --- a/cmd/bucket-object-lock.go +++ b/legacy/bucket-object-lock.go @@ -14,14 +14,14 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" "math" "net/http" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" objectlock "github.com/minio/minio/pkg/bucket/object/lock" "github.com/minio/minio/pkg/bucket/policy" diff --git a/cmd/bucket-policy-handlers.go b/legacy/bucket-policy-handlers.go similarity index 99% rename from cmd/bucket-policy-handlers.go rename to legacy/bucket-policy-handlers.go index f659d246..b59093a5 100644 --- a/cmd/bucket-policy-handlers.go +++ b/legacy/bucket-policy-handlers.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "encoding/json" @@ -23,7 +23,7 @@ import ( humanize "github.com/dustin/go-humanize" "github.com/gorilla/mux" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/bucket/policy" ) diff --git a/cmd/bucket-policy-handlers_test.go b/legacy/bucket-policy-handlers_test.go similarity index 99% rename from cmd/bucket-policy-handlers_test.go rename to legacy/bucket-policy-handlers_test.go index 91c1b5cd..c2f67c48 100644 --- a/cmd/bucket-policy-handlers_test.go +++ b/legacy/bucket-policy-handlers_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/bucket-policy.go b/legacy/bucket-policy.go similarity index 98% rename from cmd/bucket-policy.go rename to legacy/bucket-policy.go index baec0f42..2f04a8cf 100644 --- a/cmd/bucket-policy.go +++ b/legacy/bucket-policy.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "encoding/json" @@ -26,8 +26,8 @@ import ( jsoniter "github.com/json-iterator/go" miniogopolicy "github.com/minio/minio-go/v6/pkg/policy" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/bucket/policy" "github.com/minio/minio/pkg/handlers" ) diff --git a/cmd/bucket-quota.go b/legacy/bucket-quota.go similarity index 98% rename from cmd/bucket-quota.go rename to legacy/bucket-quota.go index 4fdcf6d3..93a7313b 100644 --- a/cmd/bucket-quota.go +++ b/legacy/bucket-quota.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -22,8 +22,8 @@ import ( "fmt" "time" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/env" "github.com/minio/minio/pkg/event" "github.com/minio/minio/pkg/madmin" diff --git a/cmd/build-constants.go b/legacy/build-constants.go similarity index 98% rename from cmd/build-constants.go rename to legacy/build-constants.go index 8b9a278b..adcc5343 100644 --- a/cmd/build-constants.go +++ b/legacy/build-constants.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy // DO NOT EDIT THIS FILE DIRECTLY. These are build-time constants // set through ‘buildscripts/gen-ldflags.go’. diff --git a/cmd/common-main.go b/legacy/common-main.go similarity index 98% rename from cmd/common-main.go rename to legacy/common-main.go index 4fc455b3..78c00c1a 100644 --- a/cmd/common-main.go +++ b/legacy/common-main.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "crypto/x509" @@ -29,8 +29,8 @@ import ( dns2 "github.com/miekg/dns" "github.com/minio/cli" "github.com/minio/minio-go/v6/pkg/set" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/certs" "github.com/minio/minio/pkg/env" diff --git a/cmd/config-common.go b/legacy/config-common.go similarity index 97% rename from cmd/config-common.go rename to legacy/config-common.go index 1cc9543d..d444742f 100644 --- a/cmd/config-common.go +++ b/legacy/config-common.go @@ -14,14 +14,14 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" "context" "errors" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/hash" ) diff --git a/cmd/config-current.go b/legacy/config-current.go similarity index 96% rename from cmd/config-current.go rename to legacy/config-current.go index 9fddd1c8..eb50fdc9 100644 --- a/cmd/config-current.go +++ b/legacy/config-current.go @@ -14,28 +14,28 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" "strings" "sync" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/config/api" - "github.com/minio/minio/cmd/config/cache" - "github.com/minio/minio/cmd/config/compress" - "github.com/minio/minio/cmd/config/etcd" - "github.com/minio/minio/cmd/config/etcd/dns" - xldap "github.com/minio/minio/cmd/config/identity/ldap" - "github.com/minio/minio/cmd/config/identity/openid" - "github.com/minio/minio/cmd/config/notify" - "github.com/minio/minio/cmd/config/policy/opa" - "github.com/minio/minio/cmd/config/storageclass" - "github.com/minio/minio/cmd/crypto" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" - "github.com/minio/minio/cmd/logger/target/http" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/config/api" + "github.com/minio/minio/legacy/config/cache" + "github.com/minio/minio/legacy/config/compress" + "github.com/minio/minio/legacy/config/etcd" + "github.com/minio/minio/legacy/config/etcd/dns" + xldap "github.com/minio/minio/legacy/config/identity/ldap" + "github.com/minio/minio/legacy/config/identity/openid" + "github.com/minio/minio/legacy/config/notify" + "github.com/minio/minio/legacy/config/policy/opa" + "github.com/minio/minio/legacy/config/storageclass" + "github.com/minio/minio/legacy/crypto" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" + "github.com/minio/minio/legacy/logger/target/http" "github.com/minio/minio/pkg/env" "github.com/minio/minio/pkg/madmin" ) diff --git a/cmd/config-current_test.go b/legacy/config-current_test.go similarity index 96% rename from cmd/config-current_test.go rename to legacy/config-current_test.go index c77a744b..c60517d4 100644 --- a/cmd/config-current_test.go +++ b/legacy/config-current_test.go @@ -14,14 +14,14 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" "os" "testing" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" ) func TestServerConfig(t *testing.T) { diff --git a/cmd/config-dir.go b/legacy/config-dir.go similarity index 99% rename from cmd/config-dir.go rename to legacy/config-dir.go index c76ed30e..dda3a024 100644 --- a/cmd/config-dir.go +++ b/legacy/config-dir.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "os" diff --git a/cmd/config-encrypted.go b/legacy/config-encrypted.go similarity index 98% rename from cmd/config-encrypted.go rename to legacy/config-encrypted.go index 17036538..2e756f90 100644 --- a/cmd/config-encrypted.go +++ b/legacy/config-encrypted.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -25,8 +25,8 @@ import ( "unicode/utf8" etcd "github.com/coreos/etcd/clientv3" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/madmin" ) diff --git a/cmd/config-encrypted_test.go b/legacy/config-encrypted_test.go similarity index 99% rename from cmd/config-encrypted_test.go rename to legacy/config-encrypted_test.go index 860e1682..2190f0ba 100644 --- a/cmd/config-encrypted_test.go +++ b/legacy/config-encrypted_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/config-migrate.go b/legacy/config-migrate.go similarity index 99% rename from cmd/config-migrate.go rename to legacy/config-migrate.go index 23e56c79..b82b40e5 100644 --- a/cmd/config-migrate.go +++ b/legacy/config-migrate.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -25,16 +25,16 @@ import ( "path/filepath" "strings" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/config/cache" - "github.com/minio/minio/cmd/config/compress" - xldap "github.com/minio/minio/cmd/config/identity/ldap" - "github.com/minio/minio/cmd/config/identity/openid" - "github.com/minio/minio/cmd/config/notify" - "github.com/minio/minio/cmd/config/policy/opa" - "github.com/minio/minio/cmd/config/storageclass" - "github.com/minio/minio/cmd/crypto" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/config/cache" + "github.com/minio/minio/legacy/config/compress" + xldap "github.com/minio/minio/legacy/config/identity/ldap" + "github.com/minio/minio/legacy/config/identity/openid" + "github.com/minio/minio/legacy/config/notify" + "github.com/minio/minio/legacy/config/policy/opa" + "github.com/minio/minio/legacy/config/storageclass" + "github.com/minio/minio/legacy/crypto" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/event" "github.com/minio/minio/pkg/event/target" diff --git a/cmd/config-migrate_test.go b/legacy/config-migrate_test.go similarity index 99% rename from cmd/config-migrate_test.go rename to legacy/config-migrate_test.go index 5cd087b3..9fe9ac94 100644 --- a/cmd/config-migrate_test.go +++ b/legacy/config-migrate_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" @@ -22,7 +22,7 @@ import ( "os" "testing" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" ) // Test if config v1 is purged diff --git a/cmd/config-versions.go b/legacy/config-versions.go similarity index 98% rename from cmd/config-versions.go rename to legacy/config-versions.go index 60849554..8d96d2d8 100644 --- a/cmd/config-versions.go +++ b/legacy/config-versions.go @@ -14,21 +14,21 @@ * limitations under the License. */ -package cmd +package legacy import ( "sync" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/config/cache" - "github.com/minio/minio/cmd/config/compress" - xldap "github.com/minio/minio/cmd/config/identity/ldap" - "github.com/minio/minio/cmd/config/identity/openid" - "github.com/minio/minio/cmd/config/notify" - "github.com/minio/minio/cmd/config/policy/opa" - "github.com/minio/minio/cmd/config/storageclass" - "github.com/minio/minio/cmd/crypto" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/config/cache" + "github.com/minio/minio/legacy/config/compress" + xldap "github.com/minio/minio/legacy/config/identity/ldap" + "github.com/minio/minio/legacy/config/identity/openid" + "github.com/minio/minio/legacy/config/notify" + "github.com/minio/minio/legacy/config/policy/opa" + "github.com/minio/minio/legacy/config/storageclass" + "github.com/minio/minio/legacy/crypto" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/event/target" "github.com/minio/minio/pkg/quick" diff --git a/cmd/config.go b/legacy/config.go similarity index 99% rename from cmd/config.go rename to legacy/config.go index ef51107f..67bec8e1 100644 --- a/cmd/config.go +++ b/legacy/config.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -26,7 +26,7 @@ import ( "time" jsoniter "github.com/json-iterator/go" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" "github.com/minio/minio/pkg/madmin" ) diff --git a/cmd/config/api/api.go b/legacy/config/api/api.go similarity index 98% rename from cmd/config/api/api.go rename to legacy/config/api/api.go index 3ae52dbe..dd9ff6ae 100644 --- a/cmd/config/api/api.go +++ b/legacy/config/api/api.go @@ -23,7 +23,7 @@ import ( "strings" "time" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" "github.com/minio/minio/pkg/env" ) diff --git a/cmd/config/api/help.go b/legacy/config/api/help.go similarity index 96% rename from cmd/config/api/help.go rename to legacy/config/api/help.go index f9072a6d..f233802b 100644 --- a/cmd/config/api/help.go +++ b/legacy/config/api/help.go @@ -16,7 +16,7 @@ package api -import "github.com/minio/minio/cmd/config" +import "github.com/minio/minio/legacy/config" // Help template for storageclass feature. var ( diff --git a/cmd/config/bool-flag.go b/legacy/config/bool-flag.go similarity index 100% rename from cmd/config/bool-flag.go rename to legacy/config/bool-flag.go diff --git a/cmd/config/bool-flag_test.go b/legacy/config/bool-flag_test.go similarity index 100% rename from cmd/config/bool-flag_test.go rename to legacy/config/bool-flag_test.go diff --git a/cmd/config/cache/config.go b/legacy/config/cache/config.go similarity index 99% rename from cmd/config/cache/config.go rename to legacy/config/cache/config.go index 125860da..0a780d14 100644 --- a/cmd/config/cache/config.go +++ b/legacy/config/cache/config.go @@ -22,7 +22,7 @@ import ( "path/filepath" "strings" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" "github.com/minio/minio/pkg/ellipses" ) diff --git a/cmd/config/cache/config_test.go b/legacy/config/cache/config_test.go similarity index 100% rename from cmd/config/cache/config_test.go rename to legacy/config/cache/config_test.go diff --git a/cmd/config/cache/help.go b/legacy/config/cache/help.go similarity index 97% rename from cmd/config/cache/help.go rename to legacy/config/cache/help.go index 0a346461..c01cc583 100644 --- a/cmd/config/cache/help.go +++ b/legacy/config/cache/help.go @@ -16,7 +16,7 @@ package cache -import "github.com/minio/minio/cmd/config" +import "github.com/minio/minio/legacy/config" // Help template for caching feature. var ( diff --git a/cmd/config/cache/legacy.go b/legacy/config/cache/legacy.go similarity index 97% rename from cmd/config/cache/legacy.go rename to legacy/config/cache/legacy.go index 938850c4..a6a9faf0 100644 --- a/cmd/config/cache/legacy.go +++ b/legacy/config/cache/legacy.go @@ -20,7 +20,7 @@ import ( "fmt" "strings" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" ) const ( diff --git a/cmd/config/cache/lookup.go b/legacy/config/cache/lookup.go similarity index 99% rename from cmd/config/cache/lookup.go rename to legacy/config/cache/lookup.go index d487c55b..68ba30fa 100644 --- a/cmd/config/cache/lookup.go +++ b/legacy/config/cache/lookup.go @@ -20,7 +20,7 @@ import ( "errors" "strconv" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" "github.com/minio/minio/pkg/env" ) diff --git a/cmd/config/certs.go b/legacy/config/certs.go similarity index 100% rename from cmd/config/certs.go rename to legacy/config/certs.go diff --git a/cmd/config/certs_test.go b/legacy/config/certs_test.go similarity index 100% rename from cmd/config/certs_test.go rename to legacy/config/certs_test.go diff --git a/cmd/config/certsinfo.go b/legacy/config/certsinfo.go similarity index 100% rename from cmd/config/certsinfo.go rename to legacy/config/certsinfo.go diff --git a/cmd/config/compress/compress.go b/legacy/config/compress/compress.go similarity index 98% rename from cmd/config/compress/compress.go rename to legacy/config/compress/compress.go index a72dfc9a..092e03ac 100644 --- a/cmd/config/compress/compress.go +++ b/legacy/config/compress/compress.go @@ -20,7 +20,7 @@ import ( "fmt" "strings" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" "github.com/minio/minio/pkg/env" ) diff --git a/cmd/config/compress/compress_test.go b/legacy/config/compress/compress_test.go similarity index 100% rename from cmd/config/compress/compress_test.go rename to legacy/config/compress/compress_test.go diff --git a/cmd/config/compress/help.go b/legacy/config/compress/help.go similarity index 96% rename from cmd/config/compress/help.go rename to legacy/config/compress/help.go index b292cd6b..c7f47838 100644 --- a/cmd/config/compress/help.go +++ b/legacy/config/compress/help.go @@ -16,7 +16,7 @@ package compress -import "github.com/minio/minio/cmd/config" +import "github.com/minio/minio/legacy/config" // Help template for compress feature. var ( diff --git a/cmd/config/compress/legacy.go b/legacy/config/compress/legacy.go similarity index 97% rename from cmd/config/compress/legacy.go rename to legacy/config/compress/legacy.go index 379e8f8e..8f8d3d77 100644 --- a/cmd/config/compress/legacy.go +++ b/legacy/config/compress/legacy.go @@ -19,7 +19,7 @@ package compress import ( "strings" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" ) // Legacy envs. diff --git a/cmd/config/config.go b/legacy/config/config.go similarity index 100% rename from cmd/config/config.go rename to legacy/config/config.go diff --git a/cmd/config/config_test.go b/legacy/config/config_test.go similarity index 100% rename from cmd/config/config_test.go rename to legacy/config/config_test.go diff --git a/cmd/config/constants.go b/legacy/config/constants.go similarity index 100% rename from cmd/config/constants.go rename to legacy/config/constants.go diff --git a/cmd/config/errors-utils.go b/legacy/config/errors-utils.go similarity index 100% rename from cmd/config/errors-utils.go rename to legacy/config/errors-utils.go diff --git a/cmd/config/errors.go b/legacy/config/errors.go similarity index 100% rename from cmd/config/errors.go rename to legacy/config/errors.go diff --git a/cmd/config/etcd/dns/etcd_dns.go b/legacy/config/etcd/dns/etcd_dns.go similarity index 100% rename from cmd/config/etcd/dns/etcd_dns.go rename to legacy/config/etcd/dns/etcd_dns.go diff --git a/cmd/config/etcd/dns/types.go b/legacy/config/etcd/dns/types.go similarity index 100% rename from cmd/config/etcd/dns/types.go rename to legacy/config/etcd/dns/types.go diff --git a/cmd/config/etcd/etcd.go b/legacy/config/etcd/etcd.go similarity index 99% rename from cmd/config/etcd/etcd.go rename to legacy/config/etcd/etcd.go index 67fb78f1..23d7569f 100644 --- a/cmd/config/etcd/etcd.go +++ b/legacy/config/etcd/etcd.go @@ -24,7 +24,7 @@ import ( "github.com/coreos/etcd/clientv3" "github.com/coreos/etcd/clientv3/namespace" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" "github.com/minio/minio/pkg/env" xnet "github.com/minio/minio/pkg/net" ) diff --git a/cmd/config/etcd/etcd_test.go b/legacy/config/etcd/etcd_test.go similarity index 100% rename from cmd/config/etcd/etcd_test.go rename to legacy/config/etcd/etcd_test.go diff --git a/cmd/config/etcd/help.go b/legacy/config/etcd/help.go similarity index 97% rename from cmd/config/etcd/help.go rename to legacy/config/etcd/help.go index 8009709d..6d7d1c2f 100644 --- a/cmd/config/etcd/help.go +++ b/legacy/config/etcd/help.go @@ -16,7 +16,7 @@ package etcd -import "github.com/minio/minio/cmd/config" +import "github.com/minio/minio/legacy/config" // etcd config documented in default config var ( diff --git a/cmd/config/help.go b/legacy/config/help.go similarity index 100% rename from cmd/config/help.go rename to legacy/config/help.go diff --git a/cmd/config/identity/ldap/config.go b/legacy/config/identity/ldap/config.go similarity index 99% rename from cmd/config/identity/ldap/config.go rename to legacy/config/identity/ldap/config.go index b4ac1df6..4b3c09cc 100644 --- a/cmd/config/identity/ldap/config.go +++ b/legacy/config/identity/ldap/config.go @@ -25,7 +25,7 @@ import ( "strings" "time" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" "github.com/minio/minio/pkg/env" ldap "gopkg.in/ldap.v3" ) diff --git a/cmd/config/identity/ldap/help.go b/legacy/config/identity/ldap/help.go similarity index 98% rename from cmd/config/identity/ldap/help.go rename to legacy/config/identity/ldap/help.go index b3d14b0c..a78d2ee7 100644 --- a/cmd/config/identity/ldap/help.go +++ b/legacy/config/identity/ldap/help.go @@ -16,7 +16,7 @@ package ldap -import "github.com/minio/minio/cmd/config" +import "github.com/minio/minio/legacy/config" // Help template for LDAP identity feature. var ( diff --git a/cmd/config/identity/ldap/legacy.go b/legacy/config/identity/ldap/legacy.go similarity index 96% rename from cmd/config/identity/ldap/legacy.go rename to legacy/config/identity/ldap/legacy.go index 98f36c1f..24d0d725 100644 --- a/cmd/config/identity/ldap/legacy.go +++ b/legacy/config/identity/ldap/legacy.go @@ -16,7 +16,7 @@ package ldap -import "github.com/minio/minio/cmd/config" +import "github.com/minio/minio/legacy/config" // SetIdentityLDAP - One time migration code needed, for migrating from older config to new for LDAPConfig. func SetIdentityLDAP(s config.Config, ldapArgs Config) { diff --git a/cmd/config/identity/openid/ecdsa-sha3.go b/legacy/config/identity/openid/ecdsa-sha3.go similarity index 100% rename from cmd/config/identity/openid/ecdsa-sha3.go rename to legacy/config/identity/openid/ecdsa-sha3.go diff --git a/cmd/config/identity/openid/help.go b/legacy/config/identity/openid/help.go similarity index 97% rename from cmd/config/identity/openid/help.go rename to legacy/config/identity/openid/help.go index 9bb249c7..9e89dce5 100644 --- a/cmd/config/identity/openid/help.go +++ b/legacy/config/identity/openid/help.go @@ -16,7 +16,7 @@ package openid -import "github.com/minio/minio/cmd/config" +import "github.com/minio/minio/legacy/config" // Help template for OpenID identity feature. var ( diff --git a/cmd/config/identity/openid/jwks.go b/legacy/config/identity/openid/jwks.go similarity index 100% rename from cmd/config/identity/openid/jwks.go rename to legacy/config/identity/openid/jwks.go diff --git a/cmd/config/identity/openid/jwks_test.go b/legacy/config/identity/openid/jwks_test.go similarity index 100% rename from cmd/config/identity/openid/jwks_test.go rename to legacy/config/identity/openid/jwks_test.go diff --git a/cmd/config/identity/openid/jwt.go b/legacy/config/identity/openid/jwt.go similarity index 99% rename from cmd/config/identity/openid/jwt.go rename to legacy/config/identity/openid/jwt.go index b652d422..519c9cc8 100644 --- a/cmd/config/identity/openid/jwt.go +++ b/legacy/config/identity/openid/jwt.go @@ -27,7 +27,7 @@ import ( "time" jwtgo "github.com/dgrijalva/jwt-go" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" "github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/env" iampolicy "github.com/minio/minio/pkg/iam/policy" diff --git a/cmd/config/identity/openid/jwt_test.go b/legacy/config/identity/openid/jwt_test.go similarity index 100% rename from cmd/config/identity/openid/jwt_test.go rename to legacy/config/identity/openid/jwt_test.go diff --git a/cmd/config/identity/openid/legacy.go b/legacy/config/identity/openid/legacy.go similarity index 96% rename from cmd/config/identity/openid/legacy.go rename to legacy/config/identity/openid/legacy.go index de9adc94..3999778f 100644 --- a/cmd/config/identity/openid/legacy.go +++ b/legacy/config/identity/openid/legacy.go @@ -16,7 +16,7 @@ package openid -import "github.com/minio/minio/cmd/config" +import "github.com/minio/minio/legacy/config" // Legacy envs const ( diff --git a/cmd/config/identity/openid/rsa-sha3.go b/legacy/config/identity/openid/rsa-sha3.go similarity index 100% rename from cmd/config/identity/openid/rsa-sha3.go rename to legacy/config/identity/openid/rsa-sha3.go diff --git a/cmd/config/identity/openid/validators.go b/legacy/config/identity/openid/validators.go similarity index 100% rename from cmd/config/identity/openid/validators.go rename to legacy/config/identity/openid/validators.go diff --git a/cmd/config/identity/openid/validators_test.go b/legacy/config/identity/openid/validators_test.go similarity index 100% rename from cmd/config/identity/openid/validators_test.go rename to legacy/config/identity/openid/validators_test.go diff --git a/cmd/config/legacy.go b/legacy/config/legacy.go similarity index 100% rename from cmd/config/legacy.go rename to legacy/config/legacy.go diff --git a/cmd/config/notify/config.go b/legacy/config/notify/config.go similarity index 100% rename from cmd/config/notify/config.go rename to legacy/config/notify/config.go diff --git a/cmd/config/notify/help.go b/legacy/config/notify/help.go similarity index 99% rename from cmd/config/notify/help.go rename to legacy/config/notify/help.go index 05f7d9a4..53c1dc13 100644 --- a/cmd/config/notify/help.go +++ b/legacy/config/notify/help.go @@ -17,7 +17,7 @@ package notify import ( - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" "github.com/minio/minio/pkg/event/target" ) diff --git a/cmd/config/notify/legacy.go b/legacy/config/notify/legacy.go similarity index 99% rename from cmd/config/notify/legacy.go rename to legacy/config/notify/legacy.go index 1c79965f..c692c111 100644 --- a/cmd/config/notify/legacy.go +++ b/legacy/config/notify/legacy.go @@ -21,7 +21,7 @@ import ( "strconv" "strings" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" "github.com/minio/minio/pkg/event/target" ) diff --git a/cmd/config/notify/parse.go b/legacy/config/notify/parse.go similarity index 99% rename from cmd/config/notify/parse.go rename to legacy/config/notify/parse.go index 93f603d4..9adc5c8f 100644 --- a/cmd/config/notify/parse.go +++ b/legacy/config/notify/parse.go @@ -26,8 +26,8 @@ import ( "strings" "time" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/env" "github.com/minio/minio/pkg/event" "github.com/minio/minio/pkg/event/target" diff --git a/cmd/config/policy/opa/config.go b/legacy/config/policy/opa/config.go similarity index 99% rename from cmd/config/policy/opa/config.go rename to legacy/config/policy/opa/config.go index 05745e2c..e4e777d6 100644 --- a/cmd/config/policy/opa/config.go +++ b/legacy/config/policy/opa/config.go @@ -23,7 +23,7 @@ import ( "io/ioutil" "net/http" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" "github.com/minio/minio/pkg/env" iampolicy "github.com/minio/minio/pkg/iam/policy" xnet "github.com/minio/minio/pkg/net" diff --git a/cmd/config/policy/opa/help.go b/legacy/config/policy/opa/help.go similarity index 96% rename from cmd/config/policy/opa/help.go rename to legacy/config/policy/opa/help.go index 7090b09b..54cd707a 100644 --- a/cmd/config/policy/opa/help.go +++ b/legacy/config/policy/opa/help.go @@ -16,7 +16,7 @@ package opa -import "github.com/minio/minio/cmd/config" +import "github.com/minio/minio/legacy/config" // Help template for OPA policy feature. var ( diff --git a/cmd/config/policy/opa/legacy.go b/legacy/config/policy/opa/legacy.go similarity index 96% rename from cmd/config/policy/opa/legacy.go rename to legacy/config/policy/opa/legacy.go index 04ecb08a..060c58c6 100644 --- a/cmd/config/policy/opa/legacy.go +++ b/legacy/config/policy/opa/legacy.go @@ -17,7 +17,7 @@ package opa import ( - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" ) // Legacy OPA envs diff --git a/cmd/config/storageclass/help.go b/legacy/config/storageclass/help.go similarity index 96% rename from cmd/config/storageclass/help.go rename to legacy/config/storageclass/help.go index a7bf8962..eda5b304 100644 --- a/cmd/config/storageclass/help.go +++ b/legacy/config/storageclass/help.go @@ -16,7 +16,7 @@ package storageclass -import "github.com/minio/minio/cmd/config" +import "github.com/minio/minio/legacy/config" // Help template for storageclass feature. var ( diff --git a/cmd/config/storageclass/legacy.go b/legacy/config/storageclass/legacy.go similarity index 96% rename from cmd/config/storageclass/legacy.go rename to legacy/config/storageclass/legacy.go index 8059bf5a..d52b9253 100644 --- a/cmd/config/storageclass/legacy.go +++ b/legacy/config/storageclass/legacy.go @@ -17,7 +17,7 @@ package storageclass import ( - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" ) // SetStorageClass - One time migration code needed, for migrating from older config to new for StorageClass. diff --git a/cmd/config/storageclass/storage-class.go b/legacy/config/storageclass/storage-class.go similarity index 99% rename from cmd/config/storageclass/storage-class.go rename to legacy/config/storageclass/storage-class.go index 37e3e0fa..1d913849 100644 --- a/cmd/config/storageclass/storage-class.go +++ b/legacy/config/storageclass/storage-class.go @@ -22,7 +22,7 @@ import ( "strconv" "strings" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" "github.com/minio/minio/pkg/env" ) diff --git a/cmd/config/storageclass/storage-class_test.go b/legacy/config/storageclass/storage-class_test.go similarity index 100% rename from cmd/config/storageclass/storage-class_test.go rename to legacy/config/storageclass/storage-class_test.go diff --git a/cmd/consolelogger.go b/legacy/consolelogger.go similarity index 95% rename from cmd/consolelogger.go rename to legacy/consolelogger.go index 103a892d..26ecc65e 100644 --- a/cmd/consolelogger.go +++ b/legacy/consolelogger.go @@ -14,16 +14,16 @@ * limitations under the License. */ -package cmd +package legacy import ( ring "container/ring" "context" "sync" - "github.com/minio/minio/cmd/logger" - "github.com/minio/minio/cmd/logger/message/log" - "github.com/minio/minio/cmd/logger/target/console" + "github.com/minio/minio/legacy/logger" + "github.com/minio/minio/legacy/logger/message/log" + "github.com/minio/minio/legacy/logger/target/console" xnet "github.com/minio/minio/pkg/net" "github.com/minio/minio/pkg/pubsub" ) diff --git a/cmd/copy-part-range.go b/legacy/copy-part-range.go similarity index 99% rename from cmd/copy-part-range.go rename to legacy/copy-part-range.go index ed9eca39..c87a505f 100644 --- a/cmd/copy-part-range.go +++ b/legacy/copy-part-range.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/copy-part-range_test.go b/legacy/copy-part-range_test.go similarity index 99% rename from cmd/copy-part-range_test.go rename to legacy/copy-part-range_test.go index 1566e75c..468dfd8c 100644 --- a/cmd/copy-part-range_test.go +++ b/legacy/copy-part-range_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import "testing" diff --git a/cmd/crossdomain-xml-handler.go b/legacy/crossdomain-xml-handler.go similarity index 99% rename from cmd/crossdomain-xml-handler.go rename to legacy/crossdomain-xml-handler.go index a6581036..e20918c5 100644 --- a/cmd/crossdomain-xml-handler.go +++ b/legacy/crossdomain-xml-handler.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import "net/http" diff --git a/cmd/crossdomain-xml-handler_test.go b/legacy/crossdomain-xml-handler_test.go similarity index 98% rename from cmd/crossdomain-xml-handler_test.go rename to legacy/crossdomain-xml-handler_test.go index 7bd53f4c..45845184 100644 --- a/cmd/crossdomain-xml-handler_test.go +++ b/legacy/crossdomain-xml-handler_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" diff --git a/cmd/crypto/config.go b/legacy/crypto/config.go similarity index 99% rename from cmd/crypto/config.go rename to legacy/crypto/config.go index 81a79743..034273af 100644 --- a/cmd/crypto/config.go +++ b/legacy/crypto/config.go @@ -20,7 +20,7 @@ import ( "reflect" "strconv" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" "github.com/minio/minio/pkg/env" xnet "github.com/minio/minio/pkg/net" ) diff --git a/cmd/crypto/doc.go b/legacy/crypto/doc.go similarity index 100% rename from cmd/crypto/doc.go rename to legacy/crypto/doc.go diff --git a/cmd/crypto/error.go b/legacy/crypto/error.go similarity index 100% rename from cmd/crypto/error.go rename to legacy/crypto/error.go diff --git a/cmd/crypto/header.go b/legacy/crypto/header.go similarity index 100% rename from cmd/crypto/header.go rename to legacy/crypto/header.go diff --git a/cmd/crypto/header_test.go b/legacy/crypto/header_test.go similarity index 100% rename from cmd/crypto/header_test.go rename to legacy/crypto/header_test.go diff --git a/cmd/crypto/help.go b/legacy/crypto/help.go similarity index 98% rename from cmd/crypto/help.go rename to legacy/crypto/help.go index 8fa3c654..64e5365c 100644 --- a/cmd/crypto/help.go +++ b/legacy/crypto/help.go @@ -16,7 +16,7 @@ package crypto -import "github.com/minio/minio/cmd/config" +import "github.com/minio/minio/legacy/config" // Help template for KMS vault var ( diff --git a/cmd/crypto/kes.go b/legacy/crypto/kes.go similarity index 99% rename from cmd/crypto/kes.go rename to legacy/crypto/kes.go index 10f3c0b8..505e6ca8 100644 --- a/cmd/crypto/kes.go +++ b/legacy/crypto/kes.go @@ -30,7 +30,7 @@ import ( "strings" "time" - xhttp "github.com/minio/minio/cmd/http" + xhttp "github.com/minio/minio/legacy/http" xnet "github.com/minio/minio/pkg/net" ) diff --git a/cmd/crypto/key.go b/legacy/crypto/key.go similarity index 99% rename from cmd/crypto/key.go rename to legacy/crypto/key.go index f069159d..8c18995f 100644 --- a/cmd/crypto/key.go +++ b/legacy/crypto/key.go @@ -24,7 +24,7 @@ import ( "io" "path" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" sha256 "github.com/minio/sha256-simd" "github.com/minio/sio" ) diff --git a/cmd/crypto/key_test.go b/legacy/crypto/key_test.go similarity index 99% rename from cmd/crypto/key_test.go rename to legacy/crypto/key_test.go index f8059e29..07aa7f8a 100644 --- a/cmd/crypto/key_test.go +++ b/legacy/crypto/key_test.go @@ -21,7 +21,7 @@ import ( "io" "testing" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" ) var shortRandom = func(limit int64) io.Reader { return io.LimitReader(rand.Reader, limit) } diff --git a/cmd/crypto/kms.go b/legacy/crypto/kms.go similarity index 99% rename from cmd/crypto/kms.go rename to legacy/crypto/kms.go index cc7a097b..3ba964af 100644 --- a/cmd/crypto/kms.go +++ b/legacy/crypto/kms.go @@ -24,7 +24,7 @@ import ( "io" "sort" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" sha256 "github.com/minio/sha256-simd" "github.com/minio/sio" ) diff --git a/cmd/crypto/kms_test.go b/legacy/crypto/kms_test.go similarity index 100% rename from cmd/crypto/kms_test.go rename to legacy/crypto/kms_test.go diff --git a/cmd/crypto/legacy.go b/legacy/crypto/legacy.go similarity index 99% rename from cmd/crypto/legacy.go rename to legacy/crypto/legacy.go index a074e160..13b7c709 100644 --- a/cmd/crypto/legacy.go +++ b/legacy/crypto/legacy.go @@ -20,7 +20,7 @@ import ( "reflect" "strconv" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" "github.com/minio/minio/pkg/env" xnet "github.com/minio/minio/pkg/net" ) diff --git a/cmd/crypto/metadata.go b/legacy/crypto/metadata.go similarity index 99% rename from cmd/crypto/metadata.go rename to legacy/crypto/metadata.go index ee0864bf..a5922f21 100644 --- a/cmd/crypto/metadata.go +++ b/legacy/crypto/metadata.go @@ -19,7 +19,7 @@ import ( "encoding/base64" "errors" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" ) // IsMultiPart returns true if the object metadata indicates diff --git a/cmd/crypto/metadata_test.go b/legacy/crypto/metadata_test.go similarity index 99% rename from cmd/crypto/metadata_test.go rename to legacy/crypto/metadata_test.go index 828eea0b..e38a6c4b 100644 --- a/cmd/crypto/metadata_test.go +++ b/legacy/crypto/metadata_test.go @@ -20,7 +20,7 @@ import ( "encoding/hex" "testing" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" ) var isMultipartTests = []struct { diff --git a/cmd/crypto/parse.go b/legacy/crypto/parse.go similarity index 100% rename from cmd/crypto/parse.go rename to legacy/crypto/parse.go diff --git a/cmd/crypto/parse_test.go b/legacy/crypto/parse_test.go similarity index 100% rename from cmd/crypto/parse_test.go rename to legacy/crypto/parse_test.go diff --git a/cmd/crypto/retry.go b/legacy/crypto/retry.go similarity index 100% rename from cmd/crypto/retry.go rename to legacy/crypto/retry.go diff --git a/cmd/crypto/sse.go b/legacy/crypto/sse.go similarity index 99% rename from cmd/crypto/sse.go rename to legacy/crypto/sse.go index 87adcc1e..34ed3060 100644 --- a/cmd/crypto/sse.go +++ b/legacy/crypto/sse.go @@ -21,7 +21,7 @@ import ( "net/http" "path" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/ioutil" "github.com/minio/sio" ) diff --git a/cmd/crypto/sse_test.go b/legacy/crypto/sse_test.go similarity index 100% rename from cmd/crypto/sse_test.go rename to legacy/crypto/sse_test.go diff --git a/cmd/crypto/vault.go b/legacy/crypto/vault.go similarity index 100% rename from cmd/crypto/vault.go rename to legacy/crypto/vault.go diff --git a/cmd/crypto/vault_test.go b/legacy/crypto/vault_test.go similarity index 100% rename from cmd/crypto/vault_test.go rename to legacy/crypto/vault_test.go diff --git a/cmd/data-crawler.go b/legacy/data-crawler.go similarity index 99% rename from cmd/data-crawler.go rename to legacy/data-crawler.go index 46b1e405..a5f1f27f 100644 --- a/cmd/data-crawler.go +++ b/legacy/data-crawler.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -27,9 +27,9 @@ import ( "strings" "time" - "github.com/minio/minio/cmd/config" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/bucket/lifecycle" "github.com/minio/minio/pkg/color" "github.com/minio/minio/pkg/env" diff --git a/cmd/data-update-tracker.go b/legacy/data-update-tracker.go similarity index 99% rename from cmd/data-update-tracker.go rename to legacy/data-update-tracker.go index be96e133..bb03e3c8 100644 --- a/cmd/data-update-tracker.go +++ b/legacy/data-update-tracker.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bufio" @@ -31,8 +31,8 @@ import ( "sync" "time" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/color" "github.com/minio/minio/pkg/env" "github.com/willf/bloom" diff --git a/cmd/data-update-tracker_test.go b/legacy/data-update-tracker_test.go similarity index 98% rename from cmd/data-update-tracker_test.go rename to legacy/data-update-tracker_test.go index 9af0c9d1..41de19a7 100644 --- a/cmd/data-update-tracker_test.go +++ b/legacy/data-update-tracker_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -28,8 +28,8 @@ import ( "sync" "testing" - "github.com/minio/minio/cmd/logger" - "github.com/minio/minio/cmd/logger/message/log" + "github.com/minio/minio/legacy/logger" + "github.com/minio/minio/legacy/logger/message/log" ) type testLoggerI interface { diff --git a/cmd/data-usage-cache.go b/legacy/data-usage-cache.go similarity index 99% rename from cmd/data-usage-cache.go rename to legacy/data-usage-cache.go index 667a60a2..1522607a 100644 --- a/cmd/data-usage-cache.go +++ b/legacy/data-usage-cache.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -29,7 +29,7 @@ import ( "github.com/cespare/xxhash/v2" "github.com/klauspost/compress/zstd" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/bucket/lifecycle" "github.com/minio/minio/pkg/hash" "github.com/tinylib/msgp/msgp" diff --git a/cmd/data-usage-cache_gen.go b/legacy/data-usage-cache_gen.go similarity index 99% rename from cmd/data-usage-cache_gen.go rename to legacy/data-usage-cache_gen.go index be5cdd9c..f0b59b46 100644 --- a/cmd/data-usage-cache_gen.go +++ b/legacy/data-usage-cache_gen.go @@ -1,4 +1,4 @@ -package cmd +package legacy // Code generated by github.com/tinylib/msgp DO NOT EDIT. diff --git a/cmd/data-usage-cache_gen_test.go b/legacy/data-usage-cache_gen_test.go similarity index 99% rename from cmd/data-usage-cache_gen_test.go rename to legacy/data-usage-cache_gen_test.go index 8922e16f..b3cfc0a3 100644 --- a/cmd/data-usage-cache_gen_test.go +++ b/legacy/data-usage-cache_gen_test.go @@ -1,4 +1,4 @@ -package cmd +package legacy // Code generated by github.com/tinylib/msgp DO NOT EDIT. diff --git a/cmd/data-usage.go b/legacy/data-usage.go similarity index 98% rename from cmd/data-usage.go rename to legacy/data-usage.go index bcec9acb..981061c2 100644 --- a/cmd/data-usage.go +++ b/legacy/data-usage.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -22,7 +22,7 @@ import ( "encoding/json" jsoniter "github.com/json-iterator/go" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/hash" ) diff --git a/cmd/data-usage_test.go b/legacy/data-usage_test.go similarity index 99% rename from cmd/data-usage_test.go rename to legacy/data-usage_test.go index 5255459e..3dd24b78 100644 --- a/cmd/data-usage_test.go +++ b/legacy/data-usage_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/disk-cache-backend.go b/legacy/disk-cache-backend.go similarity index 99% rename from cmd/disk-cache-backend.go rename to legacy/disk-cache-backend.go index 43b36446..afd07b1d 100644 --- a/cmd/disk-cache-backend.go +++ b/legacy/disk-cache-backend.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -33,10 +33,10 @@ import ( "time" "github.com/djherbis/atime" - "github.com/minio/minio/cmd/config/cache" - "github.com/minio/minio/cmd/crypto" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config/cache" + "github.com/minio/minio/legacy/crypto" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/disk" "github.com/minio/sio" ) diff --git a/cmd/disk-cache-check-support_other.go b/legacy/disk-cache-check-support_other.go similarity index 98% rename from cmd/disk-cache-check-support_other.go rename to legacy/disk-cache-check-support_other.go index f28b09cc..c04f80d2 100644 --- a/cmd/disk-cache-check-support_other.go +++ b/legacy/disk-cache-check-support_other.go @@ -16,7 +16,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "errors" diff --git a/cmd/disk-cache-check-support_windows.go b/legacy/disk-cache-check-support_windows.go similarity index 98% rename from cmd/disk-cache-check-support_windows.go rename to legacy/disk-cache-check-support_windows.go index bf8ac21c..7b3ce0e9 100644 --- a/cmd/disk-cache-check-support_windows.go +++ b/legacy/disk-cache-check-support_windows.go @@ -16,7 +16,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "errors" diff --git a/cmd/disk-cache-stats.go b/legacy/disk-cache-stats.go similarity index 99% rename from cmd/disk-cache-stats.go rename to legacy/disk-cache-stats.go index 2cf15fa2..4b988098 100644 --- a/cmd/disk-cache-stats.go +++ b/legacy/disk-cache-stats.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "sync/atomic" diff --git a/cmd/disk-cache-utils.go b/legacy/disk-cache-utils.go similarity index 99% rename from cmd/disk-cache-utils.go rename to legacy/disk-cache-utils.go index 6a11a882..f880c7db 100644 --- a/cmd/disk-cache-utils.go +++ b/legacy/disk-cache-utils.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "container/list" @@ -29,7 +29,7 @@ import ( "strings" "time" - "github.com/minio/minio/cmd/crypto" + "github.com/minio/minio/legacy/crypto" ) // CacheStatusType - whether the request was served from cache. diff --git a/cmd/disk-cache-utils_test.go b/legacy/disk-cache-utils_test.go similarity index 99% rename from cmd/disk-cache-utils_test.go rename to legacy/disk-cache-utils_test.go index 8de7b455..c2e577d1 100644 --- a/cmd/disk-cache-utils_test.go +++ b/legacy/disk-cache-utils_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" diff --git a/cmd/disk-cache.go b/legacy/disk-cache.go similarity index 99% rename from cmd/disk-cache.go rename to legacy/disk-cache.go index e66a5428..290c5363 100644 --- a/cmd/disk-cache.go +++ b/legacy/disk-cache.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -27,8 +27,8 @@ import ( "sync/atomic" "time" - "github.com/minio/minio/cmd/config/cache" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config/cache" + "github.com/minio/minio/legacy/logger" objectlock "github.com/minio/minio/pkg/bucket/object/lock" "github.com/minio/minio/pkg/color" "github.com/minio/minio/pkg/sync/errgroup" diff --git a/cmd/disk-cache_test.go b/legacy/disk-cache_test.go similarity index 99% rename from cmd/disk-cache_test.go rename to legacy/disk-cache_test.go index 1a35d180..c481cd79 100644 --- a/cmd/disk-cache_test.go +++ b/legacy/disk-cache_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "testing" diff --git a/cmd/dummy-data-generator_test.go b/legacy/dummy-data-generator_test.go similarity index 99% rename from cmd/dummy-data-generator_test.go rename to legacy/dummy-data-generator_test.go index 052d852f..b38057c6 100644 --- a/cmd/dummy-data-generator_test.go +++ b/legacy/dummy-data-generator_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/dummy-handlers.go b/legacy/dummy-handlers.go similarity index 99% rename from cmd/dummy-handlers.go rename to legacy/dummy-handlers.go index 2d33e718..f89e3342 100644 --- a/cmd/dummy-handlers.go +++ b/legacy/dummy-handlers.go @@ -14,13 +14,13 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" "github.com/gorilla/mux" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/bucket/policy" ) diff --git a/cmd/dynamic-timeouts.go b/legacy/dynamic-timeouts.go similarity index 99% rename from cmd/dynamic-timeouts.go rename to legacy/dynamic-timeouts.go index 41161410..b3352abf 100644 --- a/cmd/dynamic-timeouts.go +++ b/legacy/dynamic-timeouts.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "sync" diff --git a/cmd/dynamic-timeouts_test.go b/legacy/dynamic-timeouts_test.go similarity index 99% rename from cmd/dynamic-timeouts_test.go rename to legacy/dynamic-timeouts_test.go index 699c7f8a..04ef4707 100644 --- a/cmd/dynamic-timeouts_test.go +++ b/legacy/dynamic-timeouts_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "math/rand" diff --git a/cmd/encryption-v1.go b/legacy/encryption-v1.go similarity index 99% rename from cmd/encryption-v1.go rename to legacy/encryption-v1.go index 789f40e5..ace958a8 100644 --- a/cmd/encryption-v1.go +++ b/legacy/encryption-v1.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bufio" @@ -32,8 +32,8 @@ import ( "strings" "github.com/minio/minio-go/v6/pkg/encrypt" - "github.com/minio/minio/cmd/crypto" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/crypto" + "github.com/minio/minio/legacy/logger" sha256 "github.com/minio/sha256-simd" "github.com/minio/sio" ) diff --git a/cmd/encryption-v1_test.go b/legacy/encryption-v1_test.go similarity index 99% rename from cmd/encryption-v1_test.go rename to legacy/encryption-v1_test.go index 75ca56ac..f785aa23 100644 --- a/cmd/encryption-v1_test.go +++ b/legacy/encryption-v1_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -24,7 +24,7 @@ import ( humanize "github.com/dustin/go-humanize" "github.com/minio/minio-go/v6/pkg/encrypt" - "github.com/minio/minio/cmd/crypto" + "github.com/minio/minio/legacy/crypto" "github.com/minio/sio" ) diff --git a/cmd/endpoint-ellipses.go b/legacy/endpoint-ellipses.go similarity index 99% rename from cmd/endpoint-ellipses.go rename to legacy/endpoint-ellipses.go index 92e8b224..02036396 100644 --- a/cmd/endpoint-ellipses.go +++ b/legacy/endpoint-ellipses.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" @@ -23,7 +23,7 @@ import ( "strings" "github.com/minio/minio-go/v6/pkg/set" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" "github.com/minio/minio/pkg/ellipses" "github.com/minio/minio/pkg/env" ) diff --git a/cmd/endpoint-ellipses_test.go b/legacy/endpoint-ellipses_test.go similarity index 99% rename from cmd/endpoint-ellipses_test.go rename to legacy/endpoint-ellipses_test.go index 14cf07f7..ef88e548 100644 --- a/cmd/endpoint-ellipses_test.go +++ b/legacy/endpoint-ellipses_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" diff --git a/cmd/endpoint.go b/legacy/endpoint.go similarity index 99% rename from cmd/endpoint.go rename to legacy/endpoint.go index 9a3e4dc5..b240f038 100644 --- a/cmd/endpoint.go +++ b/legacy/endpoint.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" @@ -29,8 +29,8 @@ import ( humanize "github.com/dustin/go-humanize" "github.com/minio/minio-go/v6/pkg/set" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/env" "github.com/minio/minio/pkg/mountinfo" ) diff --git a/cmd/endpoint_test.go b/legacy/endpoint_test.go similarity index 99% rename from cmd/endpoint_test.go rename to legacy/endpoint_test.go index e562211b..620951bc 100644 --- a/cmd/endpoint_test.go +++ b/legacy/endpoint_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" diff --git a/cmd/erasure-decode.go b/legacy/erasure-decode.go similarity index 99% rename from cmd/erasure-decode.go rename to legacy/erasure-decode.go index eddc55f6..f2e43eb2 100644 --- a/cmd/erasure-decode.go +++ b/legacy/erasure-decode.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -23,7 +23,7 @@ import ( "sync" "sync/atomic" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" ) var errHealRequired = errors.New("heal required") diff --git a/cmd/erasure-decode_test.go b/legacy/erasure-decode_test.go similarity index 99% rename from cmd/erasure-decode_test.go rename to legacy/erasure-decode_test.go index f168b3cb..6a975f20 100644 --- a/cmd/erasure-decode_test.go +++ b/legacy/erasure-decode_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/erasure-encode.go b/legacy/erasure-encode.go similarity index 98% rename from cmd/erasure-encode.go rename to legacy/erasure-encode.go index f263b579..b829b7da 100644 --- a/cmd/erasure-encode.go +++ b/legacy/erasure-encode.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -22,7 +22,7 @@ import ( "sync" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" ) // Writes in parallel to writers diff --git a/cmd/erasure-encode_test.go b/legacy/erasure-encode_test.go similarity index 99% rename from cmd/erasure-encode_test.go rename to legacy/erasure-encode_test.go index 8fbe2da7..115fd09b 100644 --- a/cmd/erasure-encode_test.go +++ b/legacy/erasure-encode_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/erasure-heal.go b/legacy/erasure-heal.go similarity index 96% rename from cmd/erasure-heal.go rename to legacy/erasure-heal.go index 947416ab..b1b124aa 100644 --- a/cmd/erasure-heal.go +++ b/legacy/erasure-heal.go @@ -14,13 +14,13 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" "io" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" ) // Heal heals the shard files on non-nil writers. Note that the quorum passed is 1 diff --git a/cmd/erasure-heal_test.go b/legacy/erasure-heal_test.go similarity index 99% rename from cmd/erasure-heal_test.go rename to legacy/erasure-heal_test.go index 5ab0e23d..60349214 100644 --- a/cmd/erasure-heal_test.go +++ b/legacy/erasure-heal_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/erasure-utils.go b/legacy/erasure-utils.go similarity index 98% rename from cmd/erasure-utils.go rename to legacy/erasure-utils.go index 2f844da8..5d026cfe 100644 --- a/cmd/erasure-utils.go +++ b/legacy/erasure-utils.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -22,7 +22,7 @@ import ( "io" "github.com/klauspost/reedsolomon" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" ) // getDataBlockLen - get length of data blocks from encoded blocks. diff --git a/cmd/erasure.go b/legacy/erasure.go similarity index 98% rename from cmd/erasure.go rename to legacy/erasure.go index 4a6f31a6..1dfaf4fc 100644 --- a/cmd/erasure.go +++ b/legacy/erasure.go @@ -14,14 +14,14 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" "sync" "github.com/klauspost/reedsolomon" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" ) // Erasure - erasure encoding details. diff --git a/cmd/erasure_test.go b/legacy/erasure_test.go similarity index 99% rename from cmd/erasure_test.go rename to legacy/erasure_test.go index 4caa6f53..2064bfa7 100644 --- a/cmd/erasure_test.go +++ b/legacy/erasure_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/etcd.go b/legacy/etcd.go similarity index 99% rename from cmd/etcd.go rename to legacy/etcd.go index d3cc83a1..8dcaff2d 100644 --- a/cmd/etcd.go +++ b/legacy/etcd.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/fallocate.go b/legacy/fallocate.go similarity index 98% rename from cmd/fallocate.go rename to legacy/fallocate.go index 67046cae..8d337283 100644 --- a/cmd/fallocate.go +++ b/legacy/fallocate.go @@ -16,7 +16,7 @@ * limitations under the License. */ -package cmd +package legacy // Fallocate is not POSIX and not supported under Windows // Always return successful diff --git a/cmd/fallocate_linux.go b/legacy/fallocate_linux.go similarity index 98% rename from cmd/fallocate_linux.go rename to legacy/fallocate_linux.go index 89ea8eec..575fec2d 100644 --- a/cmd/fallocate_linux.go +++ b/legacy/fallocate_linux.go @@ -16,7 +16,7 @@ * limitations under the License. */ -package cmd +package legacy import "syscall" diff --git a/cmd/fallocate_linux_test.go b/legacy/fallocate_linux_test.go similarity index 98% rename from cmd/fallocate_linux_test.go rename to legacy/fallocate_linux_test.go index ee95f213..3f8d1a40 100644 --- a/cmd/fallocate_linux_test.go +++ b/legacy/fallocate_linux_test.go @@ -16,7 +16,7 @@ * limitations under the License. */ -package cmd +package legacy import "testing" diff --git a/cmd/fastwalk.go b/legacy/fastwalk.go similarity index 98% rename from cmd/fastwalk.go rename to legacy/fastwalk.go index 2096982e..14d6a014 100644 --- a/cmd/fastwalk.go +++ b/legacy/fastwalk.go @@ -6,7 +6,7 @@ // only fastwalk.go is imported since we already implement readDir() // with some little tweaks. -package cmd +package legacy import ( "errors" diff --git a/cmd/format-disk-cache.go b/legacy/format-disk-cache.go similarity index 99% rename from cmd/format-disk-cache.go rename to legacy/format-disk-cache.go index 3dec6e56..8636b90e 100644 --- a/cmd/format-disk-cache.go +++ b/legacy/format-disk-cache.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -29,7 +29,7 @@ import ( "strings" jsoniter "github.com/json-iterator/go" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/sio" ) diff --git a/cmd/format-disk-cache_test.go b/legacy/format-disk-cache_test.go similarity index 99% rename from cmd/format-disk-cache_test.go rename to legacy/format-disk-cache_test.go index 9e64674e..a6f43760 100644 --- a/cmd/format-disk-cache_test.go +++ b/legacy/format-disk-cache_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/format-fs.go b/legacy/format-fs.go similarity index 99% rename from cmd/format-fs.go rename to legacy/format-fs.go index 1fab6dc6..9db020b8 100644 --- a/cmd/format-fs.go +++ b/legacy/format-fs.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -24,8 +24,8 @@ import ( "path" "time" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/lock" "github.com/minio/minio/pkg/retry" ) diff --git a/cmd/format-fs_test.go b/legacy/format-fs_test.go similarity index 99% rename from cmd/format-fs_test.go rename to legacy/format-fs_test.go index dc9f187d..4dc0ce44 100644 --- a/cmd/format-fs_test.go +++ b/legacy/format-fs_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/format-meta.go b/legacy/format-meta.go similarity index 99% rename from cmd/format-meta.go rename to legacy/format-meta.go index 8c42fd37..119abf57 100644 --- a/cmd/format-meta.go +++ b/legacy/format-meta.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy // Format related consts const ( diff --git a/cmd/format-xl.go b/legacy/format-xl.go similarity index 99% rename from cmd/format-xl.go rename to legacy/format-xl.go index 8d7ad9f2..50bb6d71 100644 --- a/cmd/format-xl.go +++ b/legacy/format-xl.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -27,9 +27,9 @@ import ( "sync" humanize "github.com/dustin/go-humanize" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/config/storageclass" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/config/storageclass" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/color" "github.com/minio/minio/pkg/sync/errgroup" sha256 "github.com/minio/sha256-simd" diff --git a/cmd/format-xl_test.go b/legacy/format-xl_test.go similarity index 99% rename from cmd/format-xl_test.go rename to legacy/format-xl_test.go index 10f5adde..88534f02 100644 --- a/cmd/format-xl_test.go +++ b/legacy/format-xl_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "encoding/json" diff --git a/cmd/fs-v1-helpers.go b/legacy/fs-v1-helpers.go similarity index 99% rename from cmd/fs-v1-helpers.go rename to legacy/fs-v1-helpers.go index b312a5a9..2df5d4b4 100644 --- a/cmd/fs-v1-helpers.go +++ b/legacy/fs-v1-helpers.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -23,7 +23,7 @@ import ( pathutil "path" "runtime" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/lock" ) diff --git a/cmd/fs-v1-helpers_test.go b/legacy/fs-v1-helpers_test.go similarity index 99% rename from cmd/fs-v1-helpers_test.go rename to legacy/fs-v1-helpers_test.go index 972616ce..37babce4 100644 --- a/cmd/fs-v1-helpers_test.go +++ b/legacy/fs-v1-helpers_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/fs-v1-metadata.go b/legacy/fs-v1-metadata.go similarity index 98% rename from cmd/fs-v1-metadata.go rename to legacy/fs-v1-metadata.go index b1e108ae..0e097cab 100644 --- a/cmd/fs-v1-metadata.go +++ b/legacy/fs-v1-metadata.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -28,8 +28,8 @@ import ( "time" jsoniter "github.com/json-iterator/go" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/lock" "github.com/minio/minio/pkg/mimedb" ) diff --git a/cmd/fs-v1-metadata_test.go b/legacy/fs-v1-metadata_test.go similarity index 99% rename from cmd/fs-v1-metadata_test.go rename to legacy/fs-v1-metadata_test.go index 1d8cb7ba..09475695 100644 --- a/cmd/fs-v1-metadata_test.go +++ b/legacy/fs-v1-metadata_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/fs-v1-multipart.go b/legacy/fs-v1-multipart.go similarity index 99% rename from cmd/fs-v1-multipart.go rename to legacy/fs-v1-multipart.go index 9cf8c375..e0d0b2d5 100644 --- a/cmd/fs-v1-multipart.go +++ b/legacy/fs-v1-multipart.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -29,7 +29,7 @@ import ( "time" jsoniter "github.com/json-iterator/go" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" mioutil "github.com/minio/minio/pkg/ioutil" ) diff --git a/cmd/fs-v1-multipart_test.go b/legacy/fs-v1-multipart_test.go similarity index 99% rename from cmd/fs-v1-multipart_test.go rename to legacy/fs-v1-multipart_test.go index 91d947f5..191e7766 100644 --- a/cmd/fs-v1-multipart_test.go +++ b/legacy/fs-v1-multipart_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/fs-v1-rwpool.go b/legacy/fs-v1-rwpool.go similarity index 99% rename from cmd/fs-v1-rwpool.go rename to legacy/fs-v1-rwpool.go index 6c5eb1be..74325efc 100644 --- a/cmd/fs-v1-rwpool.go +++ b/legacy/fs-v1-rwpool.go @@ -14,14 +14,14 @@ * limitations under the License. */ -package cmd +package legacy import ( "os" pathutil "path" "sync" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/lock" ) diff --git a/cmd/fs-v1-rwpool_test.go b/legacy/fs-v1-rwpool_test.go similarity index 99% rename from cmd/fs-v1-rwpool_test.go rename to legacy/fs-v1-rwpool_test.go index f648ab85..304af2f9 100644 --- a/cmd/fs-v1-rwpool_test.go +++ b/legacy/fs-v1-rwpool_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "os" diff --git a/cmd/fs-v1.go b/legacy/fs-v1.go similarity index 99% rename from cmd/fs-v1.go rename to legacy/fs-v1.go index 99f292b8..df721b78 100644 --- a/cmd/fs-v1.go +++ b/legacy/fs-v1.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -35,9 +35,9 @@ import ( jsoniter "github.com/json-iterator/go" "github.com/minio/minio-go/v6/pkg/s3utils" "github.com/minio/minio-go/v6/pkg/tags" - "github.com/minio/minio/cmd/config" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/bucket/policy" "github.com/minio/minio/pkg/color" "github.com/minio/minio/pkg/lock" diff --git a/cmd/fs-v1_test.go b/legacy/fs-v1_test.go similarity index 99% rename from cmd/fs-v1_test.go rename to legacy/fs-v1_test.go index 62da095f..50a02aee 100644 --- a/cmd/fs-v1_test.go +++ b/legacy/fs-v1_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/gateway-common.go b/legacy/gateway-common.go similarity index 98% rename from cmd/gateway-common.go rename to legacy/gateway-common.go index 0c31952f..75509b27 100644 --- a/cmd/gateway-common.go +++ b/legacy/gateway-common.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -22,9 +22,9 @@ import ( "strings" "time" - "github.com/minio/minio/cmd/config" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/env" "github.com/minio/minio/pkg/hash" xnet "github.com/minio/minio/pkg/net" diff --git a/cmd/gateway-common_test.go b/legacy/gateway-common_test.go similarity index 98% rename from cmd/gateway-common_test.go rename to legacy/gateway-common_test.go index 6bb14c7d..61b1dbc1 100644 --- a/cmd/gateway-common_test.go +++ b/legacy/gateway-common_test.go @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package cmd +package legacy import ( "reflect" diff --git a/cmd/gateway-env.go b/legacy/gateway-env.go similarity index 98% rename from cmd/gateway-env.go rename to legacy/gateway-env.go index 5337de4d..e3a823df 100644 --- a/cmd/gateway-env.go +++ b/legacy/gateway-env.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy type gatewaySSE []string diff --git a/cmd/gateway-interface.go b/legacy/gateway-interface.go similarity index 98% rename from cmd/gateway-interface.go rename to legacy/gateway-interface.go index 4b92dcc3..22caf49c 100644 --- a/cmd/gateway-interface.go +++ b/legacy/gateway-interface.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "github.com/minio/minio/pkg/auth" diff --git a/cmd/gateway-main.go b/legacy/gateway-main.go similarity index 98% rename from cmd/gateway-main.go rename to legacy/gateway-main.go index 7500e715..6e1dbd84 100644 --- a/cmd/gateway-main.go +++ b/legacy/gateway-main.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -28,9 +28,9 @@ import ( "github.com/gorilla/mux" "github.com/minio/cli" - "github.com/minio/minio/cmd/config" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/certs" "github.com/minio/minio/pkg/color" "github.com/minio/minio/pkg/env" diff --git a/cmd/gateway-main_test.go b/legacy/gateway-main_test.go similarity index 99% rename from cmd/gateway-main_test.go rename to legacy/gateway-main_test.go index ddef8f74..dd45fe97 100644 --- a/cmd/gateway-main_test.go +++ b/legacy/gateway-main_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" diff --git a/cmd/gateway-metrics.go b/legacy/gateway-metrics.go similarity index 99% rename from cmd/gateway-metrics.go rename to legacy/gateway-metrics.go index 3f9746fa..41da771d 100644 --- a/cmd/gateway-metrics.go +++ b/legacy/gateway-metrics.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" diff --git a/cmd/gateway-startup-msg.go b/legacy/gateway-startup-msg.go similarity index 99% rename from cmd/gateway-startup-msg.go rename to legacy/gateway-startup-msg.go index 4ac915fe..17d6b898 100644 --- a/cmd/gateway-startup-msg.go +++ b/legacy/gateway-startup-msg.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" diff --git a/cmd/gateway-startup-msg_test.go b/legacy/gateway-startup-msg_test.go similarity index 98% rename from cmd/gateway-startup-msg_test.go rename to legacy/gateway-startup-msg_test.go index 0bb1734c..55da9801 100644 --- a/cmd/gateway-startup-msg_test.go +++ b/legacy/gateway-startup-msg_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "os" diff --git a/cmd/gateway-unsupported.go b/legacy/gateway-unsupported.go similarity index 99% rename from cmd/gateway-unsupported.go rename to legacy/gateway-unsupported.go index a860a5e1..51dad75d 100644 --- a/cmd/gateway-unsupported.go +++ b/legacy/gateway-unsupported.go @@ -14,13 +14,13 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" "errors" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio-go/v6/pkg/tags" bucketsse "github.com/minio/minio/pkg/bucket/encryption" diff --git a/cmd/generic-handlers.go b/legacy/generic-handlers.go similarity index 99% rename from cmd/generic-handlers.go rename to legacy/generic-handlers.go index 0b07ac62..8d298449 100644 --- a/cmd/generic-handlers.go +++ b/legacy/generic-handlers.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" @@ -24,11 +24,11 @@ import ( "github.com/minio/minio-go/v6/pkg/set" humanize "github.com/dustin/go-humanize" - "github.com/minio/minio/cmd/config/etcd/dns" - "github.com/minio/minio/cmd/crypto" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/http/stats" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config/etcd/dns" + "github.com/minio/minio/legacy/crypto" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/http/stats" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/handlers" "github.com/minio/minio/pkg/wildcard" "github.com/rs/cors" diff --git a/cmd/generic-handlers_test.go b/legacy/generic-handlers_test.go similarity index 99% rename from cmd/generic-handlers_test.go rename to legacy/generic-handlers_test.go index b91ce282..b1a18dbe 100644 --- a/cmd/generic-handlers_test.go +++ b/legacy/generic-handlers_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" @@ -23,7 +23,7 @@ import ( "strconv" "testing" - "github.com/minio/minio/cmd/crypto" + "github.com/minio/minio/legacy/crypto" ) // Tests getRedirectLocation function for all its criteria. diff --git a/cmd/global-heal.go b/legacy/global-heal.go similarity index 99% rename from cmd/global-heal.go rename to legacy/global-heal.go index 8904ecac..b80435aa 100644 --- a/cmd/global-heal.go +++ b/legacy/global-heal.go @@ -14,13 +14,13 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" "time" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/madmin" ) diff --git a/cmd/globals.go b/legacy/globals.go similarity index 95% rename from cmd/globals.go rename to legacy/globals.go index fae732fc..fbb23add 100644 --- a/cmd/globals.go +++ b/legacy/globals.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "crypto/x509" @@ -25,15 +25,15 @@ import ( etcd "github.com/coreos/etcd/clientv3" humanize "github.com/dustin/go-humanize" - "github.com/minio/minio/cmd/config/cache" - "github.com/minio/minio/cmd/config/compress" - "github.com/minio/minio/cmd/config/etcd/dns" - xldap "github.com/minio/minio/cmd/config/identity/ldap" - "github.com/minio/minio/cmd/config/identity/openid" - "github.com/minio/minio/cmd/config/policy/opa" - "github.com/minio/minio/cmd/config/storageclass" - "github.com/minio/minio/cmd/crypto" - xhttp "github.com/minio/minio/cmd/http" + "github.com/minio/minio/legacy/config/cache" + "github.com/minio/minio/legacy/config/compress" + "github.com/minio/minio/legacy/config/etcd/dns" + xldap "github.com/minio/minio/legacy/config/identity/ldap" + "github.com/minio/minio/legacy/config/identity/openid" + "github.com/minio/minio/legacy/config/policy/opa" + "github.com/minio/minio/legacy/config/storageclass" + "github.com/minio/minio/legacy/crypto" + xhttp "github.com/minio/minio/legacy/http" "github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/certs" diff --git a/cmd/handler-api.go b/legacy/handler-api.go similarity index 97% rename from cmd/handler-api.go rename to legacy/handler-api.go index f946a439..324652b6 100644 --- a/cmd/handler-api.go +++ b/legacy/handler-api.go @@ -14,14 +14,14 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" "sync" "time" - "github.com/minio/minio/cmd/config/api" + "github.com/minio/minio/legacy/config/api" ) type apiConfig struct { diff --git a/cmd/handler-utils.go b/legacy/handler-utils.go similarity index 99% rename from cmd/handler-utils.go rename to legacy/handler-utils.go index 1599e354..72b17db5 100644 --- a/cmd/handler-utils.go +++ b/legacy/handler-utils.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -30,8 +30,8 @@ import ( "strings" "time" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/handlers" "github.com/minio/minio/pkg/madmin" diff --git a/cmd/handler-utils_test.go b/legacy/handler-utils_test.go similarity index 99% rename from cmd/handler-utils_test.go rename to legacy/handler-utils_test.go index a519cbad..8d4c86b4 100644 --- a/cmd/handler-utils_test.go +++ b/legacy/handler-utils_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -27,7 +27,7 @@ import ( "strings" "testing" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" ) // Tests validate bucket LocationConstraint. diff --git a/cmd/hasher.go b/legacy/hasher.go similarity index 98% rename from cmd/hasher.go rename to legacy/hasher.go index bac821ea..e6b6e435 100644 --- a/cmd/hasher.go +++ b/legacy/hasher.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "crypto/md5" diff --git a/cmd/healthcheck-handler.go b/legacy/healthcheck-handler.go similarity index 99% rename from cmd/healthcheck-handler.go rename to legacy/healthcheck-handler.go index 85918465..c3f39af0 100644 --- a/cmd/healthcheck-handler.go +++ b/legacy/healthcheck-handler.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/healthcheck-router.go b/legacy/healthcheck-router.go similarity index 99% rename from cmd/healthcheck-router.go rename to legacy/healthcheck-router.go index cb4a6ad0..4f3f95c6 100644 --- a/cmd/healthcheck-router.go +++ b/legacy/healthcheck-router.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" diff --git a/cmd/http-stats.go b/legacy/http-stats.go similarity index 98% rename from cmd/http-stats.go rename to legacy/http-stats.go index ec88f282..f167038f 100644 --- a/cmd/http-stats.go +++ b/legacy/http-stats.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" @@ -22,7 +22,7 @@ import ( "sync" "sync/atomic" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/prometheus/client_golang/prometheus" ) diff --git a/cmd/http-tracer.go b/legacy/http-tracer.go similarity index 97% rename from cmd/http-tracer.go rename to legacy/http-tracer.go index 01ac76a2..73fa2117 100644 --- a/cmd/http-tracer.go +++ b/legacy/http-tracer.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -28,7 +28,7 @@ import ( "strings" "time" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/handlers" trace "github.com/minio/minio/pkg/trace" ) @@ -80,7 +80,7 @@ func (r *recordRequest) Data() []byte { // getOpName sanitizes the operation name for mc func getOpName(name string) (op string) { - op = strings.TrimPrefix(name, "github.com/minio/minio/cmd.") + op = strings.TrimPrefix(name, "github.com/minio/minio/legacy.") op = strings.TrimSuffix(op, "Handler-fm") op = strings.Replace(op, "objectAPIHandlers", "s3", 1) op = strings.Replace(op, "webAPIHandlers", "webui", 1) diff --git a/cmd/http/close.go b/legacy/http/close.go similarity index 100% rename from cmd/http/close.go rename to legacy/http/close.go diff --git a/cmd/http/dial_linux.go b/legacy/http/dial_linux.go similarity index 100% rename from cmd/http/dial_linux.go rename to legacy/http/dial_linux.go diff --git a/cmd/http/dial_others.go b/legacy/http/dial_others.go similarity index 100% rename from cmd/http/dial_others.go rename to legacy/http/dial_others.go diff --git a/cmd/http/headers.go b/legacy/http/headers.go similarity index 100% rename from cmd/http/headers.go rename to legacy/http/headers.go diff --git a/cmd/http/listen_nix.go b/legacy/http/listen_nix.go similarity index 100% rename from cmd/http/listen_nix.go rename to legacy/http/listen_nix.go diff --git a/cmd/http/listen_others.go b/legacy/http/listen_others.go similarity index 100% rename from cmd/http/listen_others.go rename to legacy/http/listen_others.go diff --git a/cmd/http/listener.go b/legacy/http/listener.go similarity index 100% rename from cmd/http/listener.go rename to legacy/http/listener.go diff --git a/cmd/http/listener_test.go b/legacy/http/listener_test.go similarity index 100% rename from cmd/http/listener_test.go rename to legacy/http/listener_test.go diff --git a/cmd/http/server.go b/legacy/http/server.go similarity index 100% rename from cmd/http/server.go rename to legacy/http/server.go diff --git a/cmd/http/server_test.go b/legacy/http/server_test.go similarity index 100% rename from cmd/http/server_test.go rename to legacy/http/server_test.go diff --git a/cmd/http/stats/http-traffic-recorder.go b/legacy/http/stats/http-traffic-recorder.go similarity index 100% rename from cmd/http/stats/http-traffic-recorder.go rename to legacy/http/stats/http-traffic-recorder.go diff --git a/cmd/httprange.go b/legacy/httprange.go similarity index 99% rename from cmd/httprange.go rename to legacy/httprange.go index 145e54f6..715ba0b7 100644 --- a/cmd/httprange.go +++ b/legacy/httprange.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "errors" diff --git a/cmd/httprange_test.go b/legacy/httprange_test.go similarity index 99% rename from cmd/httprange_test.go rename to legacy/httprange_test.go index ee0b9a5f..dfb03617 100644 --- a/cmd/httprange_test.go +++ b/legacy/httprange_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "testing" diff --git a/cmd/iam-etcd-store.go b/legacy/iam-etcd-store.go similarity index 99% rename from cmd/iam-etcd-store.go rename to legacy/iam-etcd-store.go index 4c2f20fb..02238e57 100644 --- a/cmd/iam-etcd-store.go +++ b/legacy/iam-etcd-store.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -30,7 +30,7 @@ import ( "github.com/coreos/etcd/mvcc/mvccpb" jwtgo "github.com/dgrijalva/jwt-go" "github.com/minio/minio-go/v6/pkg/set" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" iampolicy "github.com/minio/minio/pkg/iam/policy" "github.com/minio/minio/pkg/madmin" diff --git a/cmd/iam-object-store.go b/legacy/iam-object-store.go similarity index 99% rename from cmd/iam-object-store.go rename to legacy/iam-object-store.go index b27d1ad1..05ed3aed 100644 --- a/cmd/iam-object-store.go +++ b/legacy/iam-object-store.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -27,7 +27,7 @@ import ( jwtgo "github.com/dgrijalva/jwt-go" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" iampolicy "github.com/minio/minio/pkg/iam/policy" "github.com/minio/minio/pkg/madmin" diff --git a/cmd/iam.go b/legacy/iam.go similarity index 99% rename from cmd/iam.go rename to legacy/iam.go index 18081ae6..8a7b26e6 100644 --- a/cmd/iam.go +++ b/legacy/iam.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -27,8 +27,8 @@ import ( "time" "github.com/minio/minio-go/v6/pkg/set" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" iampolicy "github.com/minio/minio/pkg/iam/policy" "github.com/minio/minio/pkg/madmin" diff --git a/cmd/jwt.go b/legacy/jwt.go similarity index 98% rename from cmd/jwt.go rename to legacy/jwt.go index 63af66cc..0a0e38b7 100644 --- a/cmd/jwt.go +++ b/legacy/jwt.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "errors" @@ -23,8 +23,8 @@ import ( jwtgo "github.com/dgrijalva/jwt-go" jwtreq "github.com/dgrijalva/jwt-go/request" - xjwt "github.com/minio/minio/cmd/jwt" - "github.com/minio/minio/cmd/logger" + xjwt "github.com/minio/minio/legacy/jwt" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" ) diff --git a/cmd/jwt/parser.go b/legacy/jwt/parser.go similarity index 100% rename from cmd/jwt/parser.go rename to legacy/jwt/parser.go diff --git a/cmd/jwt/parser_test.go b/legacy/jwt/parser_test.go similarity index 100% rename from cmd/jwt/parser_test.go rename to legacy/jwt/parser_test.go diff --git a/cmd/jwt_test.go b/legacy/jwt_test.go similarity index 98% rename from cmd/jwt_test.go rename to legacy/jwt_test.go index 685d7afc..71006605 100644 --- a/cmd/jwt_test.go +++ b/legacy/jwt_test.go @@ -14,14 +14,14 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" "os" "testing" - xjwt "github.com/minio/minio/cmd/jwt" + xjwt "github.com/minio/minio/legacy/jwt" "github.com/minio/minio/pkg/auth" ) diff --git a/cmd/leak-detect_test.go b/legacy/leak-detect_test.go similarity index 99% rename from cmd/leak-detect_test.go rename to legacy/leak-detect_test.go index ca1aa42b..ce9abc8f 100644 --- a/cmd/leak-detect_test.go +++ b/legacy/leak-detect_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package cmd +package legacy import ( "runtime/debug" diff --git a/cmd/local-locker.go b/legacy/local-locker.go similarity index 99% rename from cmd/local-locker.go rename to legacy/local-locker.go index 707613e2..6bbc7407 100644 --- a/cmd/local-locker.go +++ b/legacy/local-locker.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" diff --git a/cmd/lock-rest-client.go b/legacy/lock-rest-client.go similarity index 96% rename from cmd/lock-rest-client.go rename to legacy/lock-rest-client.go index 61e99377..ddf58a49 100644 --- a/cmd/lock-rest-client.go +++ b/legacy/lock-rest-client.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -24,10 +24,10 @@ import ( "io" "net/url" - "github.com/minio/minio/cmd/http" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" - "github.com/minio/minio/cmd/rest" + "github.com/minio/minio/legacy/http" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" + "github.com/minio/minio/legacy/rest" "github.com/minio/minio/pkg/dsync" ) diff --git a/cmd/lock-rest-client_test.go b/legacy/lock-rest-client_test.go similarity index 98% rename from cmd/lock-rest-client_test.go rename to legacy/lock-rest-client_test.go index d05659cc..116f10bc 100644 --- a/cmd/lock-rest-client_test.go +++ b/legacy/lock-rest-client_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "testing" diff --git a/cmd/lock-rest-server-common.go b/legacy/lock-rest-server-common.go similarity index 98% rename from cmd/lock-rest-server-common.go rename to legacy/lock-rest-server-common.go index 15b10e57..3d063903 100644 --- a/cmd/lock-rest-server-common.go +++ b/legacy/lock-rest-server-common.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "errors" diff --git a/cmd/lock-rest-server-common_test.go b/legacy/lock-rest-server-common_test.go similarity index 99% rename from cmd/lock-rest-server-common_test.go rename to legacy/lock-rest-server-common_test.go index 150027b2..55c19017 100644 --- a/cmd/lock-rest-server-common_test.go +++ b/legacy/lock-rest-server-common_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "os" diff --git a/cmd/lock-rest-server.go b/legacy/lock-rest-server.go similarity index 99% rename from cmd/lock-rest-server.go rename to legacy/lock-rest-server.go index 857f37d9..ba1acdfb 100644 --- a/cmd/lock-rest-server.go +++ b/legacy/lock-rest-server.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bufio" diff --git a/cmd/logger/audit.go b/legacy/logger/audit.go similarity index 98% rename from cmd/logger/audit.go rename to legacy/logger/audit.go index 9883f9f0..0ccd17e8 100644 --- a/cmd/logger/audit.go +++ b/legacy/logger/audit.go @@ -26,7 +26,7 @@ import ( "time" "github.com/gorilla/mux" - "github.com/minio/minio/cmd/logger/message/audit" + "github.com/minio/minio/legacy/logger/message/audit" ) // ResponseWriter - is a wrapper to trap the http response status code. diff --git a/cmd/logger/config.go b/legacy/logger/config.go similarity index 99% rename from cmd/logger/config.go rename to legacy/logger/config.go index dc520f83..ae3ddd67 100644 --- a/cmd/logger/config.go +++ b/legacy/logger/config.go @@ -19,7 +19,7 @@ package logger import ( "strings" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" "github.com/minio/minio/pkg/env" ) diff --git a/cmd/logger/console.go b/legacy/logger/console.go similarity index 98% rename from cmd/logger/console.go rename to legacy/logger/console.go index 5ea22254..e292c2d9 100644 --- a/cmd/logger/console.go +++ b/legacy/logger/console.go @@ -23,7 +23,7 @@ import ( "strings" "time" - "github.com/minio/minio/cmd/logger/message/log" + "github.com/minio/minio/legacy/logger/message/log" "github.com/minio/minio/pkg/color" c "github.com/minio/minio/pkg/console" ) diff --git a/cmd/logger/help.go b/legacy/logger/help.go similarity index 97% rename from cmd/logger/help.go rename to legacy/logger/help.go index e625c4cc..451ca760 100644 --- a/cmd/logger/help.go +++ b/legacy/logger/help.go @@ -16,7 +16,7 @@ package logger -import "github.com/minio/minio/cmd/config" +import "github.com/minio/minio/legacy/config" // Help template for logger http and audit var ( diff --git a/cmd/logger/legacy.go b/legacy/logger/legacy.go similarity index 97% rename from cmd/logger/legacy.go rename to legacy/logger/legacy.go index 0d37a665..2a3ac46b 100644 --- a/cmd/logger/legacy.go +++ b/legacy/logger/legacy.go @@ -16,7 +16,7 @@ package logger -import "github.com/minio/minio/cmd/config" +import "github.com/minio/minio/legacy/config" // Legacy envs const ( diff --git a/cmd/logger/logger.go b/legacy/logger/logger.go similarity index 99% rename from cmd/logger/logger.go rename to legacy/logger/logger.go index 8ecbbb6e..47d363c8 100644 --- a/cmd/logger/logger.go +++ b/legacy/logger/logger.go @@ -30,7 +30,7 @@ import ( "github.com/minio/highwayhash" "github.com/minio/minio-go/v6/pkg/set" - "github.com/minio/minio/cmd/logger/message/log" + "github.com/minio/minio/legacy/logger/message/log" ) var ( diff --git a/cmd/logger/logonce.go b/legacy/logger/logonce.go similarity index 100% rename from cmd/logger/logonce.go rename to legacy/logger/logonce.go diff --git a/cmd/logger/message/audit/entry.go b/legacy/logger/message/audit/entry.go similarity index 98% rename from cmd/logger/message/audit/entry.go rename to legacy/logger/message/audit/entry.go index 7f9fff33..f1c7a964 100644 --- a/cmd/logger/message/audit/entry.go +++ b/legacy/logger/message/audit/entry.go @@ -21,7 +21,7 @@ import ( "strings" "time" - xhttp "github.com/minio/minio/cmd/http" + xhttp "github.com/minio/minio/legacy/http" "github.com/minio/minio/pkg/handlers" ) diff --git a/cmd/logger/message/log/entry.go b/legacy/logger/message/log/entry.go similarity index 100% rename from cmd/logger/message/log/entry.go rename to legacy/logger/message/log/entry.go diff --git a/cmd/logger/reqinfo.go b/legacy/logger/reqinfo.go similarity index 100% rename from cmd/logger/reqinfo.go rename to legacy/logger/reqinfo.go diff --git a/cmd/logger/target/console/console.go b/legacy/logger/target/console/console.go similarity index 97% rename from cmd/logger/target/console/console.go rename to legacy/logger/target/console/console.go index 74e0c7b2..042f9c2d 100644 --- a/cmd/logger/target/console/console.go +++ b/legacy/logger/target/console/console.go @@ -22,8 +22,8 @@ import ( "strings" "time" - "github.com/minio/minio/cmd/logger" - "github.com/minio/minio/cmd/logger/message/log" + "github.com/minio/minio/legacy/logger" + "github.com/minio/minio/legacy/logger/message/log" "github.com/minio/minio/pkg/color" "github.com/minio/minio/pkg/console" ) diff --git a/cmd/logger/target/http/http.go b/legacy/logger/target/http/http.go similarity index 98% rename from cmd/logger/target/http/http.go rename to legacy/logger/target/http/http.go index b777a01f..cfb39a56 100644 --- a/cmd/logger/target/http/http.go +++ b/legacy/logger/target/http/http.go @@ -23,7 +23,7 @@ import ( "net/http" "strings" - xhttp "github.com/minio/minio/cmd/http" + xhttp "github.com/minio/minio/legacy/http" ) // Target implements logger.Target and sends the json diff --git a/cmd/logger/targets.go b/legacy/logger/targets.go similarity index 100% rename from cmd/logger/targets.go rename to legacy/logger/targets.go diff --git a/cmd/logger/utils.go b/legacy/logger/utils.go similarity index 100% rename from cmd/logger/utils.go rename to legacy/logger/utils.go diff --git a/cmd/main.go b/legacy/main.go similarity index 99% rename from cmd/main.go rename to legacy/main.go index 0661faaa..cac76dad 100644 --- a/cmd/main.go +++ b/legacy/main.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "os" diff --git a/cmd/merge-walk-pool.go b/legacy/merge-walk-pool.go similarity index 99% rename from cmd/merge-walk-pool.go rename to legacy/merge-walk-pool.go index 8f34afab..a42b54e6 100644 --- a/cmd/merge-walk-pool.go +++ b/legacy/merge-walk-pool.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "reflect" diff --git a/cmd/merge-walk-pool_test.go b/legacy/merge-walk-pool_test.go similarity index 99% rename from cmd/merge-walk-pool_test.go rename to legacy/merge-walk-pool_test.go index ee127162..207a08e5 100644 --- a/cmd/merge-walk-pool_test.go +++ b/legacy/merge-walk-pool_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "testing" diff --git a/cmd/metrics-router.go b/legacy/metrics-router.go similarity index 99% rename from cmd/metrics-router.go rename to legacy/metrics-router.go index 3e26fe7d..8997c9da 100644 --- a/cmd/metrics-router.go +++ b/legacy/metrics-router.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "os" diff --git a/cmd/metrics.go b/legacy/metrics.go similarity index 99% rename from cmd/metrics.go rename to legacy/metrics.go index dd1ed16d..c6c20806 100644 --- a/cmd/metrics.go +++ b/legacy/metrics.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" @@ -22,8 +22,8 @@ import ( "sync/atomic" "time" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/env" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" diff --git a/cmd/namespace-lock.go b/legacy/namespace-lock.go similarity index 98% rename from cmd/namespace-lock.go rename to legacy/namespace-lock.go index fd7547a7..a4d14ac9 100644 --- a/cmd/namespace-lock.go +++ b/legacy/namespace-lock.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -28,7 +28,7 @@ import ( "fmt" "time" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/dsync" "github.com/minio/minio/pkg/lsync" ) @@ -263,7 +263,7 @@ func getSource(n int) string { if ok { filename = pathutil.Base(filename) funcName = strings.TrimPrefix(runtime.FuncForPC(pc).Name(), - "github.com/minio/minio/cmd.") + "github.com/minio/minio/legacy.") } else { filename = "" lineNum = 0 diff --git a/cmd/namespace-lock_test.go b/legacy/namespace-lock_test.go similarity index 99% rename from cmd/namespace-lock_test.go rename to legacy/namespace-lock_test.go index 692fe43c..70e5c414 100644 --- a/cmd/namespace-lock_test.go +++ b/legacy/namespace-lock_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/naughty-disk_test.go b/legacy/naughty-disk_test.go similarity index 99% rename from cmd/naughty-disk_test.go rename to legacy/naughty-disk_test.go index 4ad88793..502ad6c6 100644 --- a/cmd/naughty-disk_test.go +++ b/legacy/naughty-disk_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/net.go b/legacy/net.go similarity index 99% rename from cmd/net.go rename to legacy/net.go index 5bbc5357..ee84a5ff 100644 --- a/cmd/net.go +++ b/legacy/net.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "errors" @@ -26,8 +26,8 @@ import ( "syscall" "github.com/minio/minio-go/v6/pkg/set" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/logger" xnet "github.com/minio/minio/pkg/net" ) diff --git a/cmd/net_test.go b/legacy/net_test.go similarity index 99% rename from cmd/net_test.go rename to legacy/net_test.go index 1b1903c8..5ff2f83e 100644 --- a/cmd/net_test.go +++ b/legacy/net_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "errors" diff --git a/cmd/notification.go b/legacy/notification.go similarity index 99% rename from cmd/notification.go rename to legacy/notification.go index 37fa8e32..c9d5d036 100644 --- a/cmd/notification.go +++ b/legacy/notification.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -30,8 +30,8 @@ import ( "github.com/klauspost/compress/zip" "github.com/minio/minio-go/v6/pkg/set" - "github.com/minio/minio/cmd/crypto" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/crypto" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/bucket/policy" "github.com/minio/minio/pkg/event" "github.com/minio/minio/pkg/madmin" diff --git a/cmd/obdinfo.go b/legacy/obdinfo.go similarity index 99% rename from cmd/obdinfo.go rename to legacy/obdinfo.go index 81d1a3d8..672bfaeb 100644 --- a/cmd/obdinfo.go +++ b/legacy/obdinfo.go @@ -15,7 +15,7 @@ * */ -package cmd +package legacy import ( "context" diff --git a/cmd/obdinfo_other.go b/legacy/obdinfo_other.go similarity index 99% rename from cmd/obdinfo_other.go rename to legacy/obdinfo_other.go index edc9dc43..af0463e5 100644 --- a/cmd/obdinfo_other.go +++ b/legacy/obdinfo_other.go @@ -17,7 +17,7 @@ * */ -package cmd +package legacy import ( "context" diff --git a/cmd/obdinfo_unix.go b/legacy/obdinfo_unix.go similarity index 98% rename from cmd/obdinfo_unix.go rename to legacy/obdinfo_unix.go index 02c82613..09529f6d 100644 --- a/cmd/obdinfo_unix.go +++ b/legacy/obdinfo_unix.go @@ -17,7 +17,7 @@ * */ -package cmd +package legacy import ( "context" diff --git a/cmd/object-api-common.go b/legacy/object-api-common.go similarity index 99% rename from cmd/object-api-common.go rename to legacy/object-api-common.go index 6811d851..da9e0409 100644 --- a/cmd/object-api-common.go +++ b/legacy/object-api-common.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -23,7 +23,7 @@ import ( "strings" humanize "github.com/dustin/go-humanize" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" ) const ( diff --git a/cmd/object-api-datatypes.go b/legacy/object-api-datatypes.go similarity index 99% rename from cmd/object-api-datatypes.go rename to legacy/object-api-datatypes.go index 926d306a..ac6d36fa 100644 --- a/cmd/object-api-datatypes.go +++ b/legacy/object-api-datatypes.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "io" diff --git a/cmd/object-api-deleteobject_test.go b/legacy/object-api-deleteobject_test.go similarity index 99% rename from cmd/object-api-deleteobject_test.go rename to legacy/object-api-deleteobject_test.go index c3844fad..e82b21e0 100644 --- a/cmd/object-api-deleteobject_test.go +++ b/legacy/object-api-deleteobject_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/object-api-errors.go b/legacy/object-api-errors.go similarity index 99% rename from cmd/object-api-errors.go rename to legacy/object-api-errors.go index fdc09c90..336c201b 100644 --- a/cmd/object-api-errors.go +++ b/legacy/object-api-errors.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/object-api-getobject_test.go b/legacy/object-api-getobject_test.go similarity index 99% rename from cmd/object-api-getobject_test.go rename to legacy/object-api-getobject_test.go index 3cded55f..ea3ba310 100644 --- a/cmd/object-api-getobject_test.go +++ b/legacy/object-api-getobject_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/object-api-getobjectinfo_test.go b/legacy/object-api-getobjectinfo_test.go similarity index 99% rename from cmd/object-api-getobjectinfo_test.go rename to legacy/object-api-getobjectinfo_test.go index ba44d9d1..cc6354fe 100644 --- a/cmd/object-api-getobjectinfo_test.go +++ b/legacy/object-api-getobjectinfo_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/object-api-input-checks.go b/legacy/object-api-input-checks.go similarity index 99% rename from cmd/object-api-input-checks.go rename to legacy/object-api-input-checks.go index a6631183..194c0f3b 100644 --- a/cmd/object-api-input-checks.go +++ b/legacy/object-api-input-checks.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -23,7 +23,7 @@ import ( "github.com/google/uuid" "github.com/minio/minio-go/v6/pkg/s3utils" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" ) // Checks on GetObject arguments, bucket and object. diff --git a/cmd/object-api-interface.go b/legacy/object-api-interface.go similarity index 99% rename from cmd/object-api-interface.go rename to legacy/object-api-interface.go index 2be7f223..a9ef3fa7 100644 --- a/cmd/object-api-interface.go +++ b/legacy/object-api-interface.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/object-api-listobjects_test.go b/legacy/object-api-listobjects_test.go similarity index 99% rename from cmd/object-api-listobjects_test.go rename to legacy/object-api-listobjects_test.go index a8f7c637..104cffb8 100644 --- a/cmd/object-api-listobjects_test.go +++ b/legacy/object-api-listobjects_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/object-api-multipart_test.go b/legacy/object-api-multipart_test.go similarity index 99% rename from cmd/object-api-multipart_test.go rename to legacy/object-api-multipart_test.go index 351a5c94..40ad47f9 100644 --- a/cmd/object-api-multipart_test.go +++ b/legacy/object-api-multipart_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/object-api-putobject_test.go b/legacy/object-api-putobject_test.go similarity index 99% rename from cmd/object-api-putobject_test.go rename to legacy/object-api-putobject_test.go index 9886d31f..6d1989db 100644 --- a/cmd/object-api-putobject_test.go +++ b/legacy/object-api-putobject_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/object-api-utils.go b/legacy/object-api-utils.go similarity index 98% rename from cmd/object-api-utils.go rename to legacy/object-api-utils.go index 4bec241e..ca7defab 100644 --- a/cmd/object-api-utils.go +++ b/legacy/object-api-utils.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -37,12 +37,12 @@ import ( "github.com/klauspost/compress/s2" "github.com/klauspost/readahead" "github.com/minio/minio-go/v6/pkg/s3utils" - "github.com/minio/minio/cmd/config/compress" - "github.com/minio/minio/cmd/config/etcd/dns" - "github.com/minio/minio/cmd/config/storageclass" - "github.com/minio/minio/cmd/crypto" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config/compress" + "github.com/minio/minio/legacy/config/etcd/dns" + "github.com/minio/minio/legacy/config/storageclass" + "github.com/minio/minio/legacy/crypto" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/hash" "github.com/minio/minio/pkg/ioutil" "github.com/minio/minio/pkg/wildcard" diff --git a/cmd/object-api-utils_test.go b/legacy/object-api-utils_test.go similarity index 99% rename from cmd/object-api-utils_test.go rename to legacy/object-api-utils_test.go index 9a98e4bf..cbc11851 100644 --- a/cmd/object-api-utils_test.go +++ b/legacy/object-api-utils_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -25,8 +25,8 @@ import ( "testing" "github.com/klauspost/compress/s2" - "github.com/minio/minio/cmd/config/compress" - "github.com/minio/minio/cmd/crypto" + "github.com/minio/minio/legacy/config/compress" + "github.com/minio/minio/legacy/crypto" ) // Tests validate bucket name. diff --git a/cmd/object-handlers-common.go b/legacy/object-handlers-common.go similarity index 99% rename from cmd/object-handlers-common.go rename to legacy/object-handlers-common.go index 9d7ecb1b..eb0c4db2 100644 --- a/cmd/object-handlers-common.go +++ b/legacy/object-handlers-common.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -23,8 +23,8 @@ import ( "regexp" "time" - "github.com/minio/minio/cmd/crypto" - xhttp "github.com/minio/minio/cmd/http" + "github.com/minio/minio/legacy/crypto" + xhttp "github.com/minio/minio/legacy/http" "github.com/minio/minio/pkg/event" "github.com/minio/minio/pkg/handlers" ) diff --git a/cmd/object-handlers-common_test.go b/legacy/object-handlers-common_test.go similarity index 98% rename from cmd/object-handlers-common_test.go rename to legacy/object-handlers-common_test.go index ef725c67..e3db4d70 100644 --- a/cmd/object-handlers-common_test.go +++ b/legacy/object-handlers-common_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "testing" diff --git a/cmd/object-handlers.go b/legacy/object-handlers.go similarity index 99% rename from cmd/object-handlers.go rename to legacy/object-handlers.go index d8d7404e..ea72c356 100644 --- a/cmd/object-handlers.go +++ b/legacy/object-handlers.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bufio" @@ -35,11 +35,11 @@ import ( miniogo "github.com/minio/minio-go/v6" "github.com/minio/minio-go/v6/pkg/encrypt" "github.com/minio/minio-go/v6/pkg/tags" - "github.com/minio/minio/cmd/config/etcd/dns" - "github.com/minio/minio/cmd/config/storageclass" - "github.com/minio/minio/cmd/crypto" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config/etcd/dns" + "github.com/minio/minio/legacy/config/storageclass" + "github.com/minio/minio/legacy/crypto" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" objectlock "github.com/minio/minio/pkg/bucket/object/lock" "github.com/minio/minio/pkg/bucket/policy" "github.com/minio/minio/pkg/event" diff --git a/cmd/object-handlers_test.go b/legacy/object-handlers_test.go similarity index 99% rename from cmd/object-handlers_test.go rename to legacy/object-handlers_test.go index 59202955..4bc6d369 100644 --- a/cmd/object-handlers_test.go +++ b/legacy/object-handlers_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -37,8 +37,8 @@ import ( "testing" humanize "github.com/dustin/go-humanize" - "github.com/minio/minio/cmd/crypto" - xhttp "github.com/minio/minio/cmd/http" + "github.com/minio/minio/legacy/crypto" + xhttp "github.com/minio/minio/legacy/http" "github.com/minio/minio/pkg/auth" ioutilx "github.com/minio/minio/pkg/ioutil" ) diff --git a/cmd/object_api_suite_test.go b/legacy/object_api_suite_test.go similarity index 99% rename from cmd/object_api_suite_test.go rename to legacy/object_api_suite_test.go index cd876439..73d9dadc 100644 --- a/cmd/object_api_suite_test.go +++ b/legacy/object_api_suite_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/os-dirent_fileino.go b/legacy/os-dirent_fileino.go similarity index 98% rename from cmd/os-dirent_fileino.go rename to legacy/os-dirent_fileino.go index 2a9104b4..e96fc0b2 100644 --- a/cmd/os-dirent_fileino.go +++ b/legacy/os-dirent_fileino.go @@ -16,7 +16,7 @@ * limitations under the License. */ -package cmd +package legacy import "syscall" diff --git a/cmd/os-dirent_ino.go b/legacy/os-dirent_ino.go similarity index 98% rename from cmd/os-dirent_ino.go rename to legacy/os-dirent_ino.go index aa7ce457..a0fd7663 100644 --- a/cmd/os-dirent_ino.go +++ b/legacy/os-dirent_ino.go @@ -17,7 +17,7 @@ * limitations under the License. */ -package cmd +package legacy import "syscall" diff --git a/cmd/os-dirent_namelen_bsd.go b/legacy/os-dirent_namelen_bsd.go similarity index 98% rename from cmd/os-dirent_namelen_bsd.go rename to legacy/os-dirent_namelen_bsd.go index 6286f2e8..cd3c8326 100644 --- a/cmd/os-dirent_namelen_bsd.go +++ b/legacy/os-dirent_namelen_bsd.go @@ -16,7 +16,7 @@ * limitations under the License. */ -package cmd +package legacy import "syscall" diff --git a/cmd/os-dirent_namelen_linux.go b/legacy/os-dirent_namelen_linux.go similarity index 98% rename from cmd/os-dirent_namelen_linux.go rename to legacy/os-dirent_namelen_linux.go index 00e56aac..9b18c554 100644 --- a/cmd/os-dirent_namelen_linux.go +++ b/legacy/os-dirent_namelen_linux.go @@ -16,7 +16,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/os-readdir_other.go b/legacy/os-readdir_other.go similarity index 99% rename from cmd/os-readdir_other.go rename to legacy/os-readdir_other.go index febd16f4..de2180f9 100644 --- a/cmd/os-readdir_other.go +++ b/legacy/os-readdir_other.go @@ -16,7 +16,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "io" diff --git a/cmd/os-readdir_test.go b/legacy/os-readdir_test.go similarity index 99% rename from cmd/os-readdir_test.go rename to legacy/os-readdir_test.go index 2c6afb2b..ba1939ee 100644 --- a/cmd/os-readdir_test.go +++ b/legacy/os-readdir_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" diff --git a/cmd/os-readdir_unix.go b/legacy/os-readdir_unix.go similarity index 99% rename from cmd/os-readdir_unix.go rename to legacy/os-readdir_unix.go index 09494f79..82fa823b 100644 --- a/cmd/os-readdir_unix.go +++ b/legacy/os-readdir_unix.go @@ -16,7 +16,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" diff --git a/cmd/os-readdir_windows.go b/legacy/os-readdir_windows.go similarity index 99% rename from cmd/os-readdir_windows.go rename to legacy/os-readdir_windows.go index 377bf38f..ac9f34df 100644 --- a/cmd/os-readdir_windows.go +++ b/legacy/os-readdir_windows.go @@ -16,7 +16,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "os" diff --git a/cmd/os-reliable.go b/legacy/os-reliable.go similarity index 99% rename from cmd/os-reliable.go rename to legacy/os-reliable.go index c76709d2..e9d515e0 100644 --- a/cmd/os-reliable.go +++ b/legacy/os-reliable.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" diff --git a/cmd/os-reliable_test.go b/legacy/os-reliable_test.go similarity index 99% rename from cmd/os-reliable_test.go rename to legacy/os-reliable_test.go index ba1b1a25..195ab016 100644 --- a/cmd/os-reliable_test.go +++ b/legacy/os-reliable_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "os" diff --git a/cmd/peer-rest-client.go b/legacy/peer-rest-client.go similarity index 99% rename from cmd/peer-rest-client.go rename to legacy/peer-rest-client.go index 3745a68b..d91af292 100644 --- a/cmd/peer-rest-client.go +++ b/legacy/peer-rest-client.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -32,10 +32,10 @@ import ( "time" "github.com/dustin/go-humanize" - "github.com/minio/minio/cmd/http" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" - "github.com/minio/minio/cmd/rest" + "github.com/minio/minio/legacy/http" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" + "github.com/minio/minio/legacy/rest" "github.com/minio/minio/pkg/event" "github.com/minio/minio/pkg/madmin" xnet "github.com/minio/minio/pkg/net" diff --git a/cmd/peer-rest-common.go b/legacy/peer-rest-common.go similarity index 99% rename from cmd/peer-rest-common.go rename to legacy/peer-rest-common.go index a2640734..04b37be5 100644 --- a/cmd/peer-rest-common.go +++ b/legacy/peer-rest-common.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy const ( peerRESTVersion = "v9" diff --git a/cmd/peer-rest-server.go b/legacy/peer-rest-server.go similarity index 99% rename from cmd/peer-rest-server.go rename to legacy/peer-rest-server.go index da5b67c2..1c5e45c0 100644 --- a/cmd/peer-rest-server.go +++ b/legacy/peer-rest-server.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -29,7 +29,7 @@ import ( "time" "github.com/gorilla/mux" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/event" "github.com/minio/minio/pkg/madmin" trace "github.com/minio/minio/pkg/trace" diff --git a/cmd/policy_test.go b/legacy/policy_test.go similarity index 99% rename from cmd/policy_test.go rename to legacy/policy_test.go index 785a6166..b1e1e4f8 100644 --- a/cmd/policy_test.go +++ b/legacy/policy_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "reflect" diff --git a/cmd/posix-diskid-check.go b/legacy/posix-diskid-check.go similarity index 99% rename from cmd/posix-diskid-check.go rename to legacy/posix-diskid-check.go index abe5bd5f..b0b3d3e9 100644 --- a/cmd/posix-diskid-check.go +++ b/legacy/posix-diskid-check.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/posix-errors.go b/legacy/posix-errors.go similarity index 99% rename from cmd/posix-errors.go rename to legacy/posix-errors.go index 65233326..036754b1 100644 --- a/cmd/posix-errors.go +++ b/legacy/posix-errors.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "errors" diff --git a/cmd/posix-errors_test.go b/legacy/posix-errors_test.go similarity index 99% rename from cmd/posix-errors_test.go rename to legacy/posix-errors_test.go index da4624be..8047ed78 100644 --- a/cmd/posix-errors_test.go +++ b/legacy/posix-errors_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "os" diff --git a/cmd/posix.go b/legacy/posix.go similarity index 99% rename from cmd/posix.go rename to legacy/posix.go index 6d7dfae6..eebaed6f 100644 --- a/cmd/posix.go +++ b/legacy/posix.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bufio" @@ -39,7 +39,7 @@ import ( humanize "github.com/dustin/go-humanize" jsoniter "github.com/json-iterator/go" "github.com/klauspost/readahead" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/disk" xioutil "github.com/minio/minio/pkg/ioutil" "github.com/minio/minio/pkg/mountinfo" diff --git a/cmd/posix_test.go b/legacy/posix_test.go similarity index 99% rename from cmd/posix_test.go rename to legacy/posix_test.go index 0c3cb23f..0d268a6d 100644 --- a/cmd/posix_test.go +++ b/legacy/posix_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/posix_unix_test.go b/legacy/posix_unix_test.go similarity index 99% rename from cmd/posix_unix_test.go rename to legacy/posix_unix_test.go index a6dedd84..df334734 100644 --- a/cmd/posix_unix_test.go +++ b/legacy/posix_unix_test.go @@ -16,7 +16,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "io/ioutil" diff --git a/cmd/posix_windows_test.go b/legacy/posix_windows_test.go similarity index 99% rename from cmd/posix_windows_test.go rename to legacy/posix_windows_test.go index 2ae38d8c..8c7af831 100644 --- a/cmd/posix_windows_test.go +++ b/legacy/posix_windows_test.go @@ -16,7 +16,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/post-policy_test.go b/legacy/post-policy_test.go similarity index 99% rename from cmd/post-policy_test.go rename to legacy/post-policy_test.go index 005b22a0..0209f688 100644 --- a/cmd/post-policy_test.go +++ b/legacy/post-policy_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/postpolicyform.go b/legacy/postpolicyform.go similarity index 99% rename from cmd/postpolicyform.go rename to legacy/postpolicyform.go index 69889b4e..2deb88f5 100644 --- a/cmd/postpolicyform.go +++ b/legacy/postpolicyform.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "encoding/json" diff --git a/cmd/postpolicyform_test.go b/legacy/postpolicyform_test.go similarity index 99% rename from cmd/postpolicyform_test.go rename to legacy/postpolicyform_test.go index be39b639..d3812226 100644 --- a/cmd/postpolicyform_test.go +++ b/legacy/postpolicyform_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "encoding/base64" diff --git a/cmd/prepare-storage.go b/legacy/prepare-storage.go similarity index 98% rename from cmd/prepare-storage.go rename to legacy/prepare-storage.go index 9c813c96..69214c68 100644 --- a/cmd/prepare-storage.go +++ b/legacy/prepare-storage.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "crypto/tls" @@ -27,10 +27,10 @@ import ( "time" "github.com/dustin/go-humanize" - "github.com/minio/minio/cmd/config" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" - "github.com/minio/minio/cmd/rest" + "github.com/minio/minio/legacy/config" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" + "github.com/minio/minio/legacy/rest" "github.com/minio/minio/pkg/sync/errgroup" ) diff --git a/cmd/rest/client.go b/legacy/rest/client.go similarity index 99% rename from cmd/rest/client.go rename to legacy/rest/client.go index f8a1d0b8..ce7b155f 100644 --- a/cmd/rest/client.go +++ b/legacy/rest/client.go @@ -26,7 +26,7 @@ import ( "sync/atomic" "time" - xhttp "github.com/minio/minio/cmd/http" + xhttp "github.com/minio/minio/legacy/http" ) // DefaultRESTTimeout - default RPC timeout is one minute. diff --git a/cmd/routers.go b/legacy/routers.go similarity index 99% rename from cmd/routers.go rename to legacy/routers.go index e78e7262..64b01e40 100644 --- a/cmd/routers.go +++ b/legacy/routers.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" diff --git a/cmd/server-main.go b/legacy/server-main.go similarity index 99% rename from cmd/server-main.go rename to legacy/server-main.go index b982f1bb..8bfff83d 100644 --- a/cmd/server-main.go +++ b/legacy/server-main.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bufio" @@ -31,9 +31,9 @@ import ( "time" "github.com/minio/cli" - "github.com/minio/minio/cmd/config" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/certs" "github.com/minio/minio/pkg/color" diff --git a/cmd/server-main_test.go b/legacy/server-main_test.go similarity index 99% rename from cmd/server-main_test.go rename to legacy/server-main_test.go index e05bbdcd..4495a9cb 100644 --- a/cmd/server-main_test.go +++ b/legacy/server-main_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/server-rlimit.go b/legacy/server-rlimit.go similarity index 99% rename from cmd/server-rlimit.go rename to legacy/server-rlimit.go index 7002d400..38f06984 100644 --- a/cmd/server-rlimit.go +++ b/legacy/server-rlimit.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "runtime/debug" diff --git a/cmd/server-startup-msg.go b/legacy/server-startup-msg.go similarity index 99% rename from cmd/server-startup-msg.go rename to legacy/server-startup-msg.go index d004dad4..52bd5985 100644 --- a/cmd/server-startup-msg.go +++ b/legacy/server-startup-msg.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "crypto/x509" @@ -24,8 +24,8 @@ import ( "strings" humanize "github.com/dustin/go-humanize" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/logger" color "github.com/minio/minio/pkg/color" xnet "github.com/minio/minio/pkg/net" ) diff --git a/cmd/server-startup-msg_test.go b/legacy/server-startup-msg_test.go similarity index 99% rename from cmd/server-startup-msg_test.go rename to legacy/server-startup-msg_test.go index d0eb14f6..7c905568 100644 --- a/cmd/server-startup-msg_test.go +++ b/legacy/server-startup-msg_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "os" diff --git a/cmd/server_test.go b/legacy/server_test.go similarity index 99% rename from cmd/server_test.go rename to legacy/server_test.go index df59bf65..024e3326 100644 --- a/cmd/server_test.go +++ b/legacy/server_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -32,7 +32,7 @@ import ( "time" humanize "github.com/dustin/go-humanize" - xhttp "github.com/minio/minio/cmd/http" + xhttp "github.com/minio/minio/legacy/http" "github.com/minio/minio/pkg/bucket/policy" ) diff --git a/cmd/service.go b/legacy/service.go similarity index 99% rename from cmd/service.go rename to legacy/service.go index 8f10eae1..9d00f9a2 100644 --- a/cmd/service.go +++ b/legacy/service.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/setup-type.go b/legacy/setup-type.go similarity index 98% rename from cmd/setup-type.go rename to legacy/setup-type.go index 516e5821..d32d2a53 100644 --- a/cmd/setup-type.go +++ b/legacy/setup-type.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy // SetupType - enum for setup type. type SetupType int diff --git a/cmd/signals.go b/legacy/signals.go similarity index 97% rename from cmd/signals.go rename to legacy/signals.go index 965a85cc..e3f45024 100644 --- a/cmd/signals.go +++ b/legacy/signals.go @@ -14,14 +14,14 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" "os" "strings" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" ) func handleSignals() { diff --git a/cmd/signature-v2.go b/legacy/signature-v2.go similarity index 99% rename from cmd/signature-v2.go rename to legacy/signature-v2.go index 630c4151..87ef029a 100644 --- a/cmd/signature-v2.go +++ b/legacy/signature-v2.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "crypto/hmac" @@ -28,7 +28,7 @@ import ( "strconv" "strings" - xhttp "github.com/minio/minio/cmd/http" + xhttp "github.com/minio/minio/legacy/http" "github.com/minio/minio/pkg/auth" ) diff --git a/cmd/signature-v2_test.go b/legacy/signature-v2_test.go similarity index 99% rename from cmd/signature-v2_test.go rename to legacy/signature-v2_test.go index 13930709..9336356f 100644 --- a/cmd/signature-v2_test.go +++ b/legacy/signature-v2_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" diff --git a/cmd/signature-v4-parser.go b/legacy/signature-v4-parser.go similarity index 99% rename from cmd/signature-v4-parser.go rename to legacy/signature-v4-parser.go index 31006f11..7256b62e 100644 --- a/cmd/signature-v4-parser.go +++ b/legacy/signature-v4-parser.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" diff --git a/cmd/signature-v4-parser_test.go b/legacy/signature-v4-parser_test.go similarity index 99% rename from cmd/signature-v4-parser_test.go rename to legacy/signature-v4-parser_test.go index 13b1ee7f..45c3bfec 100644 --- a/cmd/signature-v4-parser_test.go +++ b/legacy/signature-v4-parser_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/url" diff --git a/cmd/signature-v4-utils.go b/legacy/signature-v4-utils.go similarity index 98% rename from cmd/signature-v4-utils.go rename to legacy/signature-v4-utils.go index 6f09d688..d6a60013 100644 --- a/cmd/signature-v4-utils.go +++ b/legacy/signature-v4-utils.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -26,8 +26,8 @@ import ( "strconv" "strings" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" "github.com/minio/sha256-simd" ) diff --git a/cmd/signature-v4-utils_test.go b/legacy/signature-v4-utils_test.go similarity index 99% rename from cmd/signature-v4-utils_test.go rename to legacy/signature-v4-utils_test.go index 399cf50c..80bb0478 100644 --- a/cmd/signature-v4-utils_test.go +++ b/legacy/signature-v4-utils_test.go @@ -14,13 +14,13 @@ * limitations under the License. */ -package cmd +package legacy import ( "net/http" "testing" - "github.com/minio/minio/cmd/crypto" + "github.com/minio/minio/legacy/crypto" ) // TestSkipContentSha256Cksum - Test validate the logic which decides whether diff --git a/cmd/signature-v4.go b/legacy/signature-v4.go similarity index 99% rename from cmd/signature-v4.go rename to legacy/signature-v4.go index 9f135286..6407c2cc 100644 --- a/cmd/signature-v4.go +++ b/legacy/signature-v4.go @@ -22,7 +22,7 @@ // - Based on Authorization header. // - Based on Query parameters. // - Based on Form POST policy. -package cmd +package legacy import ( "bytes" @@ -36,7 +36,7 @@ import ( "time" "github.com/minio/minio-go/v6/pkg/s3utils" - xhttp "github.com/minio/minio/cmd/http" + xhttp "github.com/minio/minio/legacy/http" sha256 "github.com/minio/sha256-simd" ) diff --git a/cmd/signature-v4_test.go b/legacy/signature-v4_test.go similarity index 99% rename from cmd/signature-v4_test.go rename to legacy/signature-v4_test.go index f9fd3e13..004d2de0 100644 --- a/cmd/signature-v4_test.go +++ b/legacy/signature-v4_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" diff --git a/cmd/storage-datatypes.go b/legacy/storage-datatypes.go similarity index 97% rename from cmd/storage-datatypes.go rename to legacy/storage-datatypes.go index 12f3ed19..24be38b4 100644 --- a/cmd/storage-datatypes.go +++ b/legacy/storage-datatypes.go @@ -14,13 +14,13 @@ * limitations under the License. */ -package cmd +package legacy import ( "os" "time" - xhttp "github.com/minio/minio/cmd/http" + xhttp "github.com/minio/minio/legacy/http" ) // VolInfo - represents volume stat information. diff --git a/cmd/storage-errors.go b/legacy/storage-errors.go similarity index 99% rename from cmd/storage-errors.go rename to legacy/storage-errors.go index 6a674e1c..f904a0c0 100644 --- a/cmd/storage-errors.go +++ b/legacy/storage-errors.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy // errUnexpected - unexpected error, requires manual intervention. var errUnexpected = StorageErr("Unexpected error, please report this issue at https://github.com/minio/minio/issues") diff --git a/cmd/storage-interface.go b/legacy/storage-interface.go similarity index 99% rename from cmd/storage-interface.go rename to legacy/storage-interface.go index 7cfe37f8..70962656 100644 --- a/cmd/storage-interface.go +++ b/legacy/storage-interface.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/storage-rest-client.go b/legacy/storage-rest-client.go similarity index 98% rename from cmd/storage-rest-client.go rename to legacy/storage-rest-client.go index 38c3f060..0e9fd765 100644 --- a/cmd/storage-rest-client.go +++ b/legacy/storage-rest-client.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -31,10 +31,10 @@ import ( "strings" "time" - "github.com/minio/minio/cmd/http" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" - "github.com/minio/minio/cmd/rest" + "github.com/minio/minio/legacy/http" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" + "github.com/minio/minio/legacy/rest" xnet "github.com/minio/minio/pkg/net" ) diff --git a/cmd/storage-rest-common.go b/legacy/storage-rest-common.go similarity index 99% rename from cmd/storage-rest-common.go rename to legacy/storage-rest-common.go index a52c63ec..dbf6fd47 100644 --- a/cmd/storage-rest-common.go +++ b/legacy/storage-rest-common.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy const ( storageRESTVersion = "v17" // RemoveBucket API change diff --git a/cmd/storage-rest-server.go b/legacy/storage-rest-server.go similarity index 99% rename from cmd/storage-rest-server.go rename to legacy/storage-rest-server.go index d105e317..5ebeecbb 100644 --- a/cmd/storage-rest-server.go +++ b/legacy/storage-rest-server.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bufio" @@ -33,10 +33,10 @@ import ( jwtreq "github.com/dgrijalva/jwt-go/request" "github.com/gorilla/mux" - "github.com/minio/minio/cmd/config" - xhttp "github.com/minio/minio/cmd/http" - xjwt "github.com/minio/minio/cmd/jwt" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + xhttp "github.com/minio/minio/legacy/http" + xjwt "github.com/minio/minio/legacy/jwt" + "github.com/minio/minio/legacy/logger" ) var errDiskStale = errors.New("disk stale") diff --git a/cmd/storage-rest_test.go b/legacy/storage-rest_test.go similarity index 99% rename from cmd/storage-rest_test.go rename to legacy/storage-rest_test.go index 525e50a5..995f6f5e 100644 --- a/cmd/storage-rest_test.go +++ b/legacy/storage-rest_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "io/ioutil" @@ -24,7 +24,7 @@ import ( "testing" "github.com/gorilla/mux" - "github.com/minio/minio/cmd/config" + "github.com/minio/minio/legacy/config" xnet "github.com/minio/minio/pkg/net" ) diff --git a/cmd/streaming-signature-v4.go b/legacy/streaming-signature-v4.go similarity index 99% rename from cmd/streaming-signature-v4.go rename to legacy/streaming-signature-v4.go index 0de21159..f2749c09 100644 --- a/cmd/streaming-signature-v4.go +++ b/legacy/streaming-signature-v4.go @@ -16,7 +16,7 @@ // Package cmd This file implements helper functions to validate Streaming AWS // Signature Version '4' authorization header. -package cmd +package legacy import ( "bufio" @@ -29,7 +29,7 @@ import ( "time" humanize "github.com/dustin/go-humanize" - xhttp "github.com/minio/minio/cmd/http" + xhttp "github.com/minio/minio/legacy/http" "github.com/minio/minio/pkg/auth" sha256 "github.com/minio/sha256-simd" ) diff --git a/cmd/streaming-signature-v4_test.go b/legacy/streaming-signature-v4_test.go similarity index 99% rename from cmd/streaming-signature-v4_test.go rename to legacy/streaming-signature-v4_test.go index e3474b2e..ae37f406 100644 --- a/cmd/streaming-signature-v4_test.go +++ b/legacy/streaming-signature-v4_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bufio" diff --git a/cmd/sts-datatypes.go b/legacy/sts-datatypes.go similarity index 99% rename from cmd/sts-datatypes.go rename to legacy/sts-datatypes.go index 18f440d8..53d73b11 100644 --- a/cmd/sts-datatypes.go +++ b/legacy/sts-datatypes.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "encoding/xml" diff --git a/cmd/sts-errors.go b/legacy/sts-errors.go similarity index 98% rename from cmd/sts-errors.go rename to legacy/sts-errors.go index 7f10af19..38dd46a2 100644 --- a/cmd/sts-errors.go +++ b/legacy/sts-errors.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -22,8 +22,8 @@ import ( "fmt" "net/http" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" ) // writeSTSErrorRespone writes error headers diff --git a/cmd/sts-handlers.go b/legacy/sts-handlers.go similarity index 99% rename from cmd/sts-handlers.go rename to legacy/sts-handlers.go index fdc3806b..628fbf36 100644 --- a/cmd/sts-handlers.go +++ b/legacy/sts-handlers.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -25,9 +25,9 @@ import ( "strings" "github.com/gorilla/mux" - "github.com/minio/minio/cmd/config/identity/openid" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config/identity/openid" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" iampolicy "github.com/minio/minio/pkg/iam/policy" "github.com/minio/minio/pkg/wildcard" diff --git a/cmd/test-utils_test.go b/legacy/test-utils_test.go similarity index 99% rename from cmd/test-utils_test.go rename to legacy/test-utils_test.go index 348ad3ef..29c51f49 100644 --- a/cmd/test-utils_test.go +++ b/legacy/test-utils_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bufio" @@ -56,9 +56,9 @@ import ( "github.com/gorilla/mux" "github.com/minio/minio-go/v6/pkg/s3utils" "github.com/minio/minio-go/v6/pkg/signer" - "github.com/minio/minio/cmd/config" - "github.com/minio/minio/cmd/crypto" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config" + "github.com/minio/minio/legacy/crypto" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" "github.com/minio/minio/pkg/bucket/policy" "github.com/minio/minio/pkg/hash" diff --git a/cmd/tree-walk-pool.go b/legacy/tree-walk-pool.go similarity index 99% rename from cmd/tree-walk-pool.go rename to legacy/tree-walk-pool.go index 54e56830..2310471b 100644 --- a/cmd/tree-walk-pool.go +++ b/legacy/tree-walk-pool.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "errors" diff --git a/cmd/tree-walk-pool_test.go b/legacy/tree-walk-pool_test.go similarity index 99% rename from cmd/tree-walk-pool_test.go rename to legacy/tree-walk-pool_test.go index 313383d1..22d5535d 100644 --- a/cmd/tree-walk-pool_test.go +++ b/legacy/tree-walk-pool_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "testing" diff --git a/cmd/tree-walk.go b/legacy/tree-walk.go similarity index 99% rename from cmd/tree-walk.go rename to legacy/tree-walk.go index ff76a387..71a76f46 100644 --- a/cmd/tree-walk.go +++ b/legacy/tree-walk.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/tree-walk_test.go b/legacy/tree-walk_test.go similarity index 99% rename from cmd/tree-walk_test.go rename to legacy/tree-walk_test.go index 0ea5e02d..68a15843 100644 --- a/cmd/tree-walk_test.go +++ b/legacy/tree-walk_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/typed-errors.go b/legacy/typed-errors.go similarity index 99% rename from cmd/typed-errors.go rename to legacy/typed-errors.go index 27315472..a54ed9ef 100644 --- a/cmd/typed-errors.go +++ b/legacy/typed-errors.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "errors" diff --git a/cmd/update-notifier.go b/legacy/update-notifier.go similarity index 99% rename from cmd/update-notifier.go rename to legacy/update-notifier.go index f80c7d53..614db517 100644 --- a/cmd/update-notifier.go +++ b/legacy/update-notifier.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" diff --git a/cmd/update-notifier_test.go b/legacy/update-notifier_test.go similarity index 99% rename from cmd/update-notifier_test.go rename to legacy/update-notifier_test.go index b175ede3..5dd57107 100644 --- a/cmd/update-notifier_test.go +++ b/legacy/update-notifier_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" diff --git a/cmd/update.go b/legacy/update.go similarity index 99% rename from cmd/update.go rename to legacy/update.go index dcf20c14..a04037aa 100644 --- a/cmd/update.go +++ b/legacy/update.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bufio" @@ -32,8 +32,8 @@ import ( "time" "github.com/inconshreveable/go-update" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/env" xnet "github.com/minio/minio/pkg/net" _ "github.com/minio/sha256-simd" // Needed for sha256 hash verifier. diff --git a/cmd/update_test.go b/legacy/update_test.go similarity index 99% rename from cmd/update_test.go rename to legacy/update_test.go index 5a4b73af..5bf0d465 100644 --- a/cmd/update_test.go +++ b/legacy/update_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "fmt" diff --git a/cmd/utils.go b/legacy/utils.go similarity index 99% rename from cmd/utils.go rename to legacy/utils.go index 1b28ba91..20d4078a 100644 --- a/cmd/utils.go +++ b/legacy/utils.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -39,8 +39,8 @@ import ( "sync" "time" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/handlers" "github.com/minio/minio/pkg/madmin" diff --git a/cmd/utils_test.go b/legacy/utils_test.go similarity index 99% rename from cmd/utils_test.go rename to legacy/utils_test.go index 39ed623d..bebbd906 100644 --- a/cmd/utils_test.go +++ b/legacy/utils_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/version_test.go b/legacy/version_test.go similarity index 98% rename from cmd/version_test.go rename to legacy/version_test.go index d76977cd..f6baa258 100644 --- a/cmd/version_test.go +++ b/legacy/version_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "testing" diff --git a/cmd/web-handler-context.go b/legacy/web-handler-context.go similarity index 99% rename from cmd/web-handler-context.go rename to legacy/web-handler-context.go index be18b241..46a4aff4 100644 --- a/cmd/web-handler-context.go +++ b/legacy/web-handler-context.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -22,7 +22,7 @@ import ( "fmt" "net/http" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/handlers" ) diff --git a/cmd/web-handler-context_test.go b/legacy/web-handler-context_test.go similarity index 97% rename from cmd/web-handler-context_test.go rename to legacy/web-handler-context_test.go index 807f96d0..4ddcd00d 100644 --- a/cmd/web-handler-context_test.go +++ b/legacy/web-handler-context_test.go @@ -14,14 +14,14 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" "net/http" "testing" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" ) func TestKeyValueMap(t *testing.T) { diff --git a/cmd/web-handlers.go b/legacy/web-handlers.go similarity index 99% rename from cmd/web-handlers.go rename to legacy/web-handlers.go index ab768ee6..0cb9d261 100644 --- a/cmd/web-handlers.go +++ b/legacy/web-handlers.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -37,11 +37,11 @@ import ( "github.com/klauspost/compress/zip" miniogopolicy "github.com/minio/minio-go/v6/pkg/policy" "github.com/minio/minio-go/v6/pkg/s3utils" - "github.com/minio/minio/cmd/config/etcd/dns" - "github.com/minio/minio/cmd/config/identity/openid" - "github.com/minio/minio/cmd/crypto" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config/etcd/dns" + "github.com/minio/minio/legacy/config/identity/openid" + "github.com/minio/minio/legacy/crypto" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/auth" objectlock "github.com/minio/minio/pkg/bucket/object/lock" "github.com/minio/minio/pkg/bucket/policy" diff --git a/cmd/web-handlers_test.go b/legacy/web-handlers_test.go similarity index 99% rename from cmd/web-handlers_test.go rename to legacy/web-handlers_test.go index 67641019..f3be8839 100644 --- a/cmd/web-handlers_test.go +++ b/legacy/web-handlers_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "archive/zip" @@ -35,7 +35,7 @@ import ( jwtgo "github.com/dgrijalva/jwt-go" humanize "github.com/dustin/go-humanize" - xjwt "github.com/minio/minio/cmd/jwt" + xjwt "github.com/minio/minio/legacy/jwt" "github.com/minio/minio/pkg/hash" ) diff --git a/cmd/web-router.go b/legacy/web-router.go similarity index 99% rename from cmd/web-router.go rename to legacy/web-router.go index 02bd8221..cdf86c2a 100644 --- a/cmd/web-router.go +++ b/legacy/web-router.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "errors" diff --git a/cmd/xl-sets.go b/legacy/xl-sets.go similarity index 99% rename from cmd/xl-sets.go rename to legacy/xl-sets.go index 0bef6fb8..47d10b08 100644 --- a/cmd/xl-sets.go +++ b/legacy/xl-sets.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -28,9 +28,9 @@ import ( "time" "github.com/minio/minio-go/v6/pkg/tags" - "github.com/minio/minio/cmd/config/storageclass" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config/storageclass" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/bpool" "github.com/minio/minio/pkg/dsync" "github.com/minio/minio/pkg/madmin" diff --git a/cmd/xl-sets_test.go b/legacy/xl-sets_test.go similarity index 99% rename from cmd/xl-sets_test.go rename to legacy/xl-sets_test.go index 91d2f952..c708f6e9 100644 --- a/cmd/xl-sets_test.go +++ b/legacy/xl-sets_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/xl-v1-bucket.go b/legacy/xl-v1-bucket.go similarity index 99% rename from cmd/xl-v1-bucket.go rename to legacy/xl-v1-bucket.go index 5c1cf6a3..193764b7 100644 --- a/cmd/xl-v1-bucket.go +++ b/legacy/xl-v1-bucket.go @@ -14,14 +14,14 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" "sort" "github.com/minio/minio-go/v6/pkg/s3utils" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/sync/errgroup" ) diff --git a/cmd/xl-v1-common.go b/legacy/xl-v1-common.go similarity index 99% rename from cmd/xl-v1-common.go rename to legacy/xl-v1-common.go index be826dee..39ef6932 100644 --- a/cmd/xl-v1-common.go +++ b/legacy/xl-v1-common.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/xl-v1-common_test.go b/legacy/xl-v1-common_test.go similarity index 99% rename from cmd/xl-v1-common_test.go rename to legacy/xl-v1-common_test.go index 876ecb72..9af8b12f 100644 --- a/cmd/xl-v1-common_test.go +++ b/legacy/xl-v1-common_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/xl-v1-errors.go b/legacy/xl-v1-errors.go similarity index 98% rename from cmd/xl-v1-errors.go rename to legacy/xl-v1-errors.go index 3dc0260b..5b3768f9 100644 --- a/cmd/xl-v1-errors.go +++ b/legacy/xl-v1-errors.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import "errors" diff --git a/cmd/xl-v1-healing-common.go b/legacy/xl-v1-healing-common.go similarity index 99% rename from cmd/xl-v1-healing-common.go rename to legacy/xl-v1-healing-common.go index f7daef0b..90310fbf 100644 --- a/cmd/xl-v1-healing-common.go +++ b/legacy/xl-v1-healing-common.go @@ -14,14 +14,14 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" "fmt" "time" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/madmin" ) diff --git a/cmd/xl-v1-healing-common_test.go b/legacy/xl-v1-healing-common_test.go similarity index 99% rename from cmd/xl-v1-healing-common_test.go rename to legacy/xl-v1-healing-common_test.go index 7d2df85e..95f85b84 100644 --- a/cmd/xl-v1-healing-common_test.go +++ b/legacy/xl-v1-healing-common_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/xl-v1-healing.go b/legacy/xl-v1-healing.go similarity index 99% rename from cmd/xl-v1-healing.go rename to legacy/xl-v1-healing.go index 20d9c57a..811701ca 100644 --- a/cmd/xl-v1-healing.go +++ b/legacy/xl-v1-healing.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -22,7 +22,7 @@ import ( "io" "time" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/madmin" "github.com/minio/minio/pkg/sync/errgroup" ) diff --git a/cmd/xl-v1-healing_test.go b/legacy/xl-v1-healing_test.go similarity index 99% rename from cmd/xl-v1-healing_test.go rename to legacy/xl-v1-healing_test.go index 3afd9ed7..9cb12dc0 100644 --- a/cmd/xl-v1-healing_test.go +++ b/legacy/xl-v1-healing_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/xl-v1-list-objects-heal.go b/legacy/xl-v1-list-objects-heal.go similarity index 96% rename from cmd/xl-v1-list-objects-heal.go rename to legacy/xl-v1-list-objects-heal.go index 4974b772..3d0d735c 100644 --- a/cmd/xl-v1-list-objects-heal.go +++ b/legacy/xl-v1-list-objects-heal.go @@ -14,12 +14,12 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/madmin" ) diff --git a/cmd/xl-v1-list-objects.go b/legacy/xl-v1-list-objects.go similarity index 98% rename from cmd/xl-v1-list-objects.go rename to legacy/xl-v1-list-objects.go index 16e26729..33158935 100644 --- a/cmd/xl-v1-list-objects.go +++ b/legacy/xl-v1-list-objects.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/xl-v1-metadata.go b/legacy/xl-v1-metadata.go similarity index 99% rename from cmd/xl-v1-metadata.go rename to legacy/xl-v1-metadata.go index 4941d268..6b38230f 100644 --- a/cmd/xl-v1-metadata.go +++ b/legacy/xl-v1-metadata.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -28,8 +28,8 @@ import ( "time" jsoniter "github.com/json-iterator/go" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/sync/errgroup" "github.com/minio/sha256-simd" ) diff --git a/cmd/xl-v1-metadata_test.go b/legacy/xl-v1-metadata_test.go similarity index 99% rename from cmd/xl-v1-metadata_test.go rename to legacy/xl-v1-metadata_test.go index fad2cd3c..a11781ff 100644 --- a/cmd/xl-v1-metadata_test.go +++ b/legacy/xl-v1-metadata_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "testing" diff --git a/cmd/xl-v1-multipart.go b/legacy/xl-v1-multipart.go similarity index 99% rename from cmd/xl-v1-multipart.go rename to legacy/xl-v1-multipart.go index 821220be..b555931a 100644 --- a/cmd/xl-v1-multipart.go +++ b/legacy/xl-v1-multipart.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -26,8 +26,8 @@ import ( "strings" "time" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/mimedb" "github.com/minio/minio/pkg/sync/errgroup" ) diff --git a/cmd/xl-v1-multipart_test.go b/legacy/xl-v1-multipart_test.go similarity index 99% rename from cmd/xl-v1-multipart_test.go rename to legacy/xl-v1-multipart_test.go index f2f14ed9..b0a368b4 100644 --- a/cmd/xl-v1-multipart_test.go +++ b/legacy/xl-v1-multipart_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" diff --git a/cmd/xl-v1-object.go b/legacy/xl-v1-object.go similarity index 99% rename from cmd/xl-v1-object.go rename to legacy/xl-v1-object.go index 6cc0b710..2b5e490c 100644 --- a/cmd/xl-v1-object.go +++ b/legacy/xl-v1-object.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -26,8 +26,8 @@ import ( "sync" "github.com/minio/minio-go/v6/pkg/tags" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/mimedb" "github.com/minio/minio/pkg/sync/errgroup" ) diff --git a/cmd/xl-v1-object_test.go b/legacy/xl-v1-object_test.go similarity index 99% rename from cmd/xl-v1-object_test.go rename to legacy/xl-v1-object_test.go index 1e7dfac3..626259f8 100644 --- a/cmd/xl-v1-object_test.go +++ b/legacy/xl-v1-object_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" @@ -28,7 +28,7 @@ import ( "time" humanize "github.com/dustin/go-humanize" - "github.com/minio/minio/cmd/config/storageclass" + "github.com/minio/minio/legacy/config/storageclass" "github.com/minio/minio/pkg/madmin" ) diff --git a/cmd/xl-v1-utils.go b/legacy/xl-v1-utils.go similarity index 99% rename from cmd/xl-v1-utils.go rename to legacy/xl-v1-utils.go index c77b2ed4..1fffb817 100644 --- a/cmd/xl-v1-utils.go +++ b/legacy/xl-v1-utils.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -23,7 +23,7 @@ import ( "path" jsoniter "github.com/json-iterator/go" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/sync/errgroup" ) diff --git a/cmd/xl-v1-utils_test.go b/legacy/xl-v1-utils_test.go similarity index 99% rename from cmd/xl-v1-utils_test.go rename to legacy/xl-v1-utils_test.go index 7ab5e0cd..8197d2b6 100644 --- a/cmd/xl-v1-utils_test.go +++ b/legacy/xl-v1-utils_test.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "bytes" diff --git a/cmd/xl-v1.go b/legacy/xl-v1.go similarity index 99% rename from cmd/xl-v1.go rename to legacy/xl-v1.go index 29c70088..7bbdbb2a 100644 --- a/cmd/xl-v1.go +++ b/legacy/xl-v1.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -24,7 +24,7 @@ import ( "sync" "time" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/bpool" "github.com/minio/minio/pkg/color" "github.com/minio/minio/pkg/dsync" diff --git a/cmd/xl-zones.go b/legacy/xl-zones.go similarity index 99% rename from cmd/xl-zones.go rename to legacy/xl-zones.go index 4c45d46a..8f955658 100644 --- a/cmd/xl-zones.go +++ b/legacy/xl-zones.go @@ -14,7 +14,7 @@ * limitations under the License. */ -package cmd +package legacy import ( "context" @@ -27,9 +27,9 @@ import ( "time" "github.com/minio/minio-go/v6/pkg/tags" - "github.com/minio/minio/cmd/config/storageclass" - xhttp "github.com/minio/minio/cmd/http" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/config/storageclass" + xhttp "github.com/minio/minio/legacy/http" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/madmin" "github.com/minio/minio/pkg/sync/errgroup" ) diff --git a/pkg/bucket/object/lock/lock.go b/pkg/bucket/object/lock/lock.go index 3acc85a8..df8cbca8 100644 --- a/pkg/bucket/object/lock/lock.go +++ b/pkg/bucket/object/lock/lock.go @@ -27,7 +27,7 @@ import ( "time" "github.com/beevik/ntp" - "github.com/minio/minio/cmd/logger" + "github.com/minio/minio/legacy/logger" "github.com/minio/minio/pkg/env" ) diff --git a/pkg/bucket/object/lock/lock_test.go b/pkg/bucket/object/lock/lock_test.go index 6e50364e..9edd7f63 100644 --- a/pkg/bucket/object/lock/lock_test.go +++ b/pkg/bucket/object/lock/lock_test.go @@ -25,7 +25,7 @@ import ( "testing" "time" - xhttp "github.com/minio/minio/cmd/http" + xhttp "github.com/minio/minio/legacy/http" ) func TestParseMode(t *testing.T) {