refactor: narrow IAM and Swift compatibility surfaces (#3587)

* refactor: narrow IAM and Swift compatibility surfaces

* refactor: narrow heal and scanner compatibility surfaces (#3588)

* refactor: narrow RustFS runtime compatibility surfaces (#3591)
This commit is contained in:
安正超
2026-06-19 03:06:57 +08:00
committed by GitHub
parent 9b1272529a
commit b14e49e84e
15 changed files with 696 additions and 271 deletions
+91 -4
View File
@@ -13,8 +13,95 @@
// limitations under the License.
pub(crate) mod ecstore {
pub(crate) use rustfs_ecstore::{
admin_server_info, bucket, client, compress, config, data_usage, disk, endpoints, error, global, new_object_layer_fn,
notification_sys, pools, rio, set_disk, set_object_store_resolver, store, tier,
};
pub(crate) use rustfs_ecstore::global::{new_object_layer_fn, set_object_store_resolver};
pub(crate) mod admin_server_info {
pub(crate) use rustfs_ecstore::admin_server_info::get_server_info;
}
pub(crate) mod bucket {
pub(crate) use rustfs_ecstore::bucket::{
bucket_target_sys, lifecycle, metadata, metadata_sys, object_lock, policy_sys, quota, replication, tagging, target,
utils, versioning, versioning_sys,
};
}
pub(crate) mod client {
pub(crate) use rustfs_ecstore::client::object_api_utils;
#[cfg(test)]
pub(crate) use rustfs_ecstore::client::transition_api;
}
pub(crate) mod compress {
pub(crate) use rustfs_ecstore::compress::{MIN_DISK_COMPRESSIBLE_SIZE, is_disk_compressible};
}
pub(crate) mod config {
pub(crate) use rustfs_ecstore::config::storageclass;
}
pub(crate) mod data_usage {
pub(crate) use rustfs_ecstore::data_usage::{
apply_bucket_usage_memory_overlay, load_data_usage_from_backend, record_bucket_object_delete_memory,
record_bucket_object_write_memory,
};
}
pub(crate) mod disk {
#[cfg(test)]
pub(crate) use rustfs_ecstore::disk::endpoint;
pub(crate) use rustfs_ecstore::disk::{error, error_reduce};
}
pub(crate) mod endpoints {
pub(crate) use rustfs_ecstore::endpoints::EndpointServerPools;
#[cfg(test)]
pub(crate) use rustfs_ecstore::endpoints::{Endpoints, PoolEndpoints};
}
pub(crate) mod error {
pub(crate) use rustfs_ecstore::error::{
Error, StorageError, is_err_bucket_not_found, is_err_object_not_found, is_err_version_not_found,
};
}
pub(crate) mod global {
#[cfg(test)]
pub(crate) use rustfs_ecstore::global::GLOBAL_TierConfigMgr;
pub(crate) use rustfs_ecstore::global::{get_global_endpoints_opt, get_global_region, get_global_tier_config_mgr};
}
pub(crate) mod notification_sys {
pub(crate) use rustfs_ecstore::notification_sys::get_global_notification_sys;
}
pub(crate) mod pools {
pub(crate) use rustfs_ecstore::pools::{
PoolDecommissionInfo, PoolStatus, get_total_usable_capacity, get_total_usable_capacity_free,
};
}
pub(crate) mod rio {
#[cfg(test)]
pub(crate) use rustfs_ecstore::rio::{DecryptReader, EncryptReader, HardLimitReader, boxed_reader};
pub(crate) use rustfs_ecstore::rio::{
DynReader, HashReader, WriteEncryption, WritePlan, compression_metadata_value, wrap_reader,
};
}
pub(crate) mod set_disk {
pub(crate) use rustfs_ecstore::set_disk::{get_lock_acquire_timeout, is_valid_storage_class};
}
pub(crate) mod store {
pub(crate) use rustfs_ecstore::store::ECStore;
#[cfg(test)]
pub(crate) use rustfs_ecstore::store::init_local_disks;
}
pub(crate) mod tier {
pub(crate) use rustfs_ecstore::tier::tier;
#[cfg(test)]
pub(crate) use rustfs_ecstore::tier::{tier_config, warm_backend};
}
}