mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-08 14:23:13 +00:00
74 lines
1.9 KiB
Rust
74 lines
1.9 KiB
Rust
#![allow(dead_code)]
|
|
// Copyright 2024 RustFS Team
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
extern crate core;
|
|
|
|
pub mod admin_server_info;
|
|
pub mod batch_processor;
|
|
pub mod bitrot;
|
|
pub mod bucket;
|
|
pub mod cache_value;
|
|
pub mod compress;
|
|
pub mod config;
|
|
mod data_movement;
|
|
pub mod data_usage;
|
|
pub mod disk;
|
|
pub mod disks_layout;
|
|
pub mod endpoints;
|
|
pub mod erasure_coding;
|
|
pub mod error;
|
|
pub mod global;
|
|
pub(crate) mod layout;
|
|
pub mod metrics_realtime;
|
|
pub mod notification_sys;
|
|
pub mod object_api;
|
|
pub mod pools;
|
|
pub mod rebalance;
|
|
pub mod rio;
|
|
pub mod rpc;
|
|
pub mod set_disk;
|
|
mod sets;
|
|
mod storage_api_contracts;
|
|
pub mod store;
|
|
mod store_init;
|
|
pub mod store_list_objects;
|
|
pub mod store_utils;
|
|
|
|
// pub mod checksum;
|
|
pub mod client;
|
|
pub mod event;
|
|
pub mod event_notification;
|
|
#[cfg(test)]
|
|
mod pools_test;
|
|
#[cfg(test)]
|
|
mod store_test;
|
|
pub mod tier;
|
|
|
|
pub use global::set_global_endpoints;
|
|
pub use global::update_erasure_type;
|
|
pub use global::{get_global_lock_client, get_global_lock_clients, set_global_lock_client, set_global_lock_clients};
|
|
pub use global::{new_object_layer_fn, resolve_object_store_handle, set_object_store_resolver};
|
|
|
|
pub use global::GLOBAL_Endpoints;
|
|
|
|
#[cfg(test)]
|
|
mod rio_tests {
|
|
#[test]
|
|
fn uses_expected_rio_backend() {
|
|
let expected = if cfg!(feature = "rio-v2") { "rio-v2" } else { "legacy-rio" };
|
|
assert_eq!(crate::rio::backend_name(), expected);
|
|
}
|
|
}
|