From db4f277336d1e32cb6a2ddd86ac37ae9789fa4f8 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Fri, 28 Aug 2026 22:23:47 +0700 Subject: [PATCH] feat: add corex-storage crate for unified storage abstraction - Introduced corex-storage crate with support for local disk, S3-compatible, and Google Cloud Storage backends. - Implemented StorageDriver trait for various storage backends. - Added LocalFileStorage for local disk operations. - Added S3Storage for S3-compatible object storage with multipart upload support. - Added GcsStorage for Google Cloud Storage operations. - Included error handling for storage operations. - Added tests for each storage backend to ensure functionality. - Created README.md for documentation and usage examples. - Added Apache and MIT licenses for open-source compliance. --- crates/{corex-cache => mytheclipse-cache}/Cargo.toml | 0 crates/{corex-cache => mytheclipse-cache}/LICENSE-APACHE | 0 crates/{corex-cache => mytheclipse-cache}/LICENSE-MIT | 0 crates/{corex-cache => mytheclipse-cache}/README.md | 0 crates/{corex-cache => mytheclipse-cache}/src/cache_aside.rs | 0 crates/{corex-cache => mytheclipse-cache}/src/lib.rs | 0 crates/{corex-cache => mytheclipse-cache}/src/memory.rs | 0 crates/{corex-cache => mytheclipse-cache}/src/moka_cache.rs | 0 crates/{corex-cache => mytheclipse-cache}/src/multilayer.rs | 0 crates/{corex-cache => mytheclipse-cache}/src/redis.rs | 0 crates/{corex-cache => mytheclipse-cache}/src/traits.rs | 0 crates/{corex-config => mytheclipse-config}/Cargo.toml | 0 crates/{corex-config => mytheclipse-config}/LICENSE-APACHE | 0 crates/{corex-config => mytheclipse-config}/LICENSE-MIT | 0 crates/{corex-config => mytheclipse-config}/README.md | 0 crates/{corex-config => mytheclipse-config}/src/dynamic.rs | 0 crates/{corex-config => mytheclipse-config}/src/error.rs | 0 crates/{corex-config => mytheclipse-config}/src/lib.rs | 0 crates/{corex-config => mytheclipse-config}/src/loader.rs | 0 crates/{corex-crypto => mytheclipse-crypto}/Cargo.toml | 0 crates/{corex-crypto => mytheclipse-crypto}/LICENSE-APACHE | 0 crates/{corex-crypto => mytheclipse-crypto}/LICENSE-MIT | 0 crates/{corex-crypto => mytheclipse-crypto}/README.md | 0 crates/{corex-crypto => mytheclipse-crypto}/src/encryption.rs | 0 crates/{corex-crypto => mytheclipse-crypto}/src/key_ring.rs | 0 crates/{corex-crypto => mytheclipse-crypto}/src/lib.rs | 0 crates/{corex-crypto => mytheclipse-crypto}/src/password.rs | 0 crates/{corex-crypto => mytheclipse-crypto}/src/token.rs | 0 crates/{corex-event => mytheclipse-event}/Cargo.toml | 0 crates/{corex-event => mytheclipse-event}/LICENSE-APACHE | 0 crates/{corex-event => mytheclipse-event}/LICENSE-MIT | 0 crates/{corex-event => mytheclipse-event}/README.md | 0 crates/{corex-event => mytheclipse-event}/src/amqp.rs | 0 crates/{corex-event => mytheclipse-event}/src/lib.rs | 0 crates/{corex-event => mytheclipse-event}/src/memory.rs | 0 crates/{corex-event => mytheclipse-event}/src/nats.rs | 0 crates/{corex-event => mytheclipse-event}/src/traits.rs | 0 crates/{corex-event => mytheclipse-event}/src/typed.rs | 0 crates/{corex-storage => mytheclipse-storage}/Cargo.toml | 0 crates/{corex-storage => mytheclipse-storage}/LICENSE-APACHE | 0 crates/{corex-storage => mytheclipse-storage}/LICENSE-MIT | 0 crates/{corex-storage => mytheclipse-storage}/README.md | 0 crates/{corex-storage => mytheclipse-storage}/src/gcs.rs | 0 crates/{corex-storage => mytheclipse-storage}/src/lib.rs | 0 crates/{corex-storage => mytheclipse-storage}/src/local.rs | 0 crates/{corex-storage => mytheclipse-storage}/src/s3.rs | 0 crates/{corex-storage => mytheclipse-storage}/src/traits.rs | 0 47 files changed, 0 insertions(+), 0 deletions(-) rename crates/{corex-cache => mytheclipse-cache}/Cargo.toml (100%) rename crates/{corex-cache => mytheclipse-cache}/LICENSE-APACHE (100%) rename crates/{corex-cache => mytheclipse-cache}/LICENSE-MIT (100%) rename crates/{corex-cache => mytheclipse-cache}/README.md (100%) rename crates/{corex-cache => mytheclipse-cache}/src/cache_aside.rs (100%) rename crates/{corex-cache => mytheclipse-cache}/src/lib.rs (100%) rename crates/{corex-cache => mytheclipse-cache}/src/memory.rs (100%) rename crates/{corex-cache => mytheclipse-cache}/src/moka_cache.rs (100%) rename crates/{corex-cache => mytheclipse-cache}/src/multilayer.rs (100%) rename crates/{corex-cache => mytheclipse-cache}/src/redis.rs (100%) rename crates/{corex-cache => mytheclipse-cache}/src/traits.rs (100%) rename crates/{corex-config => mytheclipse-config}/Cargo.toml (100%) rename crates/{corex-config => mytheclipse-config}/LICENSE-APACHE (100%) rename crates/{corex-config => mytheclipse-config}/LICENSE-MIT (100%) rename crates/{corex-config => mytheclipse-config}/README.md (100%) rename crates/{corex-config => mytheclipse-config}/src/dynamic.rs (100%) rename crates/{corex-config => mytheclipse-config}/src/error.rs (100%) rename crates/{corex-config => mytheclipse-config}/src/lib.rs (100%) rename crates/{corex-config => mytheclipse-config}/src/loader.rs (100%) rename crates/{corex-crypto => mytheclipse-crypto}/Cargo.toml (100%) rename crates/{corex-crypto => mytheclipse-crypto}/LICENSE-APACHE (100%) rename crates/{corex-crypto => mytheclipse-crypto}/LICENSE-MIT (100%) rename crates/{corex-crypto => mytheclipse-crypto}/README.md (100%) rename crates/{corex-crypto => mytheclipse-crypto}/src/encryption.rs (100%) rename crates/{corex-crypto => mytheclipse-crypto}/src/key_ring.rs (100%) rename crates/{corex-crypto => mytheclipse-crypto}/src/lib.rs (100%) rename crates/{corex-crypto => mytheclipse-crypto}/src/password.rs (100%) rename crates/{corex-crypto => mytheclipse-crypto}/src/token.rs (100%) rename crates/{corex-event => mytheclipse-event}/Cargo.toml (100%) rename crates/{corex-event => mytheclipse-event}/LICENSE-APACHE (100%) rename crates/{corex-event => mytheclipse-event}/LICENSE-MIT (100%) rename crates/{corex-event => mytheclipse-event}/README.md (100%) rename crates/{corex-event => mytheclipse-event}/src/amqp.rs (100%) rename crates/{corex-event => mytheclipse-event}/src/lib.rs (100%) rename crates/{corex-event => mytheclipse-event}/src/memory.rs (100%) rename crates/{corex-event => mytheclipse-event}/src/nats.rs (100%) rename crates/{corex-event => mytheclipse-event}/src/traits.rs (100%) rename crates/{corex-event => mytheclipse-event}/src/typed.rs (100%) rename crates/{corex-storage => mytheclipse-storage}/Cargo.toml (100%) rename crates/{corex-storage => mytheclipse-storage}/LICENSE-APACHE (100%) rename crates/{corex-storage => mytheclipse-storage}/LICENSE-MIT (100%) rename crates/{corex-storage => mytheclipse-storage}/README.md (100%) rename crates/{corex-storage => mytheclipse-storage}/src/gcs.rs (100%) rename crates/{corex-storage => mytheclipse-storage}/src/lib.rs (100%) rename crates/{corex-storage => mytheclipse-storage}/src/local.rs (100%) rename crates/{corex-storage => mytheclipse-storage}/src/s3.rs (100%) rename crates/{corex-storage => mytheclipse-storage}/src/traits.rs (100%) diff --git a/crates/corex-cache/Cargo.toml b/crates/mytheclipse-cache/Cargo.toml similarity index 100% rename from crates/corex-cache/Cargo.toml rename to crates/mytheclipse-cache/Cargo.toml diff --git a/crates/corex-cache/LICENSE-APACHE b/crates/mytheclipse-cache/LICENSE-APACHE similarity index 100% rename from crates/corex-cache/LICENSE-APACHE rename to crates/mytheclipse-cache/LICENSE-APACHE diff --git a/crates/corex-cache/LICENSE-MIT b/crates/mytheclipse-cache/LICENSE-MIT similarity index 100% rename from crates/corex-cache/LICENSE-MIT rename to crates/mytheclipse-cache/LICENSE-MIT diff --git a/crates/corex-cache/README.md b/crates/mytheclipse-cache/README.md similarity index 100% rename from crates/corex-cache/README.md rename to crates/mytheclipse-cache/README.md diff --git a/crates/corex-cache/src/cache_aside.rs b/crates/mytheclipse-cache/src/cache_aside.rs similarity index 100% rename from crates/corex-cache/src/cache_aside.rs rename to crates/mytheclipse-cache/src/cache_aside.rs diff --git a/crates/corex-cache/src/lib.rs b/crates/mytheclipse-cache/src/lib.rs similarity index 100% rename from crates/corex-cache/src/lib.rs rename to crates/mytheclipse-cache/src/lib.rs diff --git a/crates/corex-cache/src/memory.rs b/crates/mytheclipse-cache/src/memory.rs similarity index 100% rename from crates/corex-cache/src/memory.rs rename to crates/mytheclipse-cache/src/memory.rs diff --git a/crates/corex-cache/src/moka_cache.rs b/crates/mytheclipse-cache/src/moka_cache.rs similarity index 100% rename from crates/corex-cache/src/moka_cache.rs rename to crates/mytheclipse-cache/src/moka_cache.rs diff --git a/crates/corex-cache/src/multilayer.rs b/crates/mytheclipse-cache/src/multilayer.rs similarity index 100% rename from crates/corex-cache/src/multilayer.rs rename to crates/mytheclipse-cache/src/multilayer.rs diff --git a/crates/corex-cache/src/redis.rs b/crates/mytheclipse-cache/src/redis.rs similarity index 100% rename from crates/corex-cache/src/redis.rs rename to crates/mytheclipse-cache/src/redis.rs diff --git a/crates/corex-cache/src/traits.rs b/crates/mytheclipse-cache/src/traits.rs similarity index 100% rename from crates/corex-cache/src/traits.rs rename to crates/mytheclipse-cache/src/traits.rs diff --git a/crates/corex-config/Cargo.toml b/crates/mytheclipse-config/Cargo.toml similarity index 100% rename from crates/corex-config/Cargo.toml rename to crates/mytheclipse-config/Cargo.toml diff --git a/crates/corex-config/LICENSE-APACHE b/crates/mytheclipse-config/LICENSE-APACHE similarity index 100% rename from crates/corex-config/LICENSE-APACHE rename to crates/mytheclipse-config/LICENSE-APACHE diff --git a/crates/corex-config/LICENSE-MIT b/crates/mytheclipse-config/LICENSE-MIT similarity index 100% rename from crates/corex-config/LICENSE-MIT rename to crates/mytheclipse-config/LICENSE-MIT diff --git a/crates/corex-config/README.md b/crates/mytheclipse-config/README.md similarity index 100% rename from crates/corex-config/README.md rename to crates/mytheclipse-config/README.md diff --git a/crates/corex-config/src/dynamic.rs b/crates/mytheclipse-config/src/dynamic.rs similarity index 100% rename from crates/corex-config/src/dynamic.rs rename to crates/mytheclipse-config/src/dynamic.rs diff --git a/crates/corex-config/src/error.rs b/crates/mytheclipse-config/src/error.rs similarity index 100% rename from crates/corex-config/src/error.rs rename to crates/mytheclipse-config/src/error.rs diff --git a/crates/corex-config/src/lib.rs b/crates/mytheclipse-config/src/lib.rs similarity index 100% rename from crates/corex-config/src/lib.rs rename to crates/mytheclipse-config/src/lib.rs diff --git a/crates/corex-config/src/loader.rs b/crates/mytheclipse-config/src/loader.rs similarity index 100% rename from crates/corex-config/src/loader.rs rename to crates/mytheclipse-config/src/loader.rs diff --git a/crates/corex-crypto/Cargo.toml b/crates/mytheclipse-crypto/Cargo.toml similarity index 100% rename from crates/corex-crypto/Cargo.toml rename to crates/mytheclipse-crypto/Cargo.toml diff --git a/crates/corex-crypto/LICENSE-APACHE b/crates/mytheclipse-crypto/LICENSE-APACHE similarity index 100% rename from crates/corex-crypto/LICENSE-APACHE rename to crates/mytheclipse-crypto/LICENSE-APACHE diff --git a/crates/corex-crypto/LICENSE-MIT b/crates/mytheclipse-crypto/LICENSE-MIT similarity index 100% rename from crates/corex-crypto/LICENSE-MIT rename to crates/mytheclipse-crypto/LICENSE-MIT diff --git a/crates/corex-crypto/README.md b/crates/mytheclipse-crypto/README.md similarity index 100% rename from crates/corex-crypto/README.md rename to crates/mytheclipse-crypto/README.md diff --git a/crates/corex-crypto/src/encryption.rs b/crates/mytheclipse-crypto/src/encryption.rs similarity index 100% rename from crates/corex-crypto/src/encryption.rs rename to crates/mytheclipse-crypto/src/encryption.rs diff --git a/crates/corex-crypto/src/key_ring.rs b/crates/mytheclipse-crypto/src/key_ring.rs similarity index 100% rename from crates/corex-crypto/src/key_ring.rs rename to crates/mytheclipse-crypto/src/key_ring.rs diff --git a/crates/corex-crypto/src/lib.rs b/crates/mytheclipse-crypto/src/lib.rs similarity index 100% rename from crates/corex-crypto/src/lib.rs rename to crates/mytheclipse-crypto/src/lib.rs diff --git a/crates/corex-crypto/src/password.rs b/crates/mytheclipse-crypto/src/password.rs similarity index 100% rename from crates/corex-crypto/src/password.rs rename to crates/mytheclipse-crypto/src/password.rs diff --git a/crates/corex-crypto/src/token.rs b/crates/mytheclipse-crypto/src/token.rs similarity index 100% rename from crates/corex-crypto/src/token.rs rename to crates/mytheclipse-crypto/src/token.rs diff --git a/crates/corex-event/Cargo.toml b/crates/mytheclipse-event/Cargo.toml similarity index 100% rename from crates/corex-event/Cargo.toml rename to crates/mytheclipse-event/Cargo.toml diff --git a/crates/corex-event/LICENSE-APACHE b/crates/mytheclipse-event/LICENSE-APACHE similarity index 100% rename from crates/corex-event/LICENSE-APACHE rename to crates/mytheclipse-event/LICENSE-APACHE diff --git a/crates/corex-event/LICENSE-MIT b/crates/mytheclipse-event/LICENSE-MIT similarity index 100% rename from crates/corex-event/LICENSE-MIT rename to crates/mytheclipse-event/LICENSE-MIT diff --git a/crates/corex-event/README.md b/crates/mytheclipse-event/README.md similarity index 100% rename from crates/corex-event/README.md rename to crates/mytheclipse-event/README.md diff --git a/crates/corex-event/src/amqp.rs b/crates/mytheclipse-event/src/amqp.rs similarity index 100% rename from crates/corex-event/src/amqp.rs rename to crates/mytheclipse-event/src/amqp.rs diff --git a/crates/corex-event/src/lib.rs b/crates/mytheclipse-event/src/lib.rs similarity index 100% rename from crates/corex-event/src/lib.rs rename to crates/mytheclipse-event/src/lib.rs diff --git a/crates/corex-event/src/memory.rs b/crates/mytheclipse-event/src/memory.rs similarity index 100% rename from crates/corex-event/src/memory.rs rename to crates/mytheclipse-event/src/memory.rs diff --git a/crates/corex-event/src/nats.rs b/crates/mytheclipse-event/src/nats.rs similarity index 100% rename from crates/corex-event/src/nats.rs rename to crates/mytheclipse-event/src/nats.rs diff --git a/crates/corex-event/src/traits.rs b/crates/mytheclipse-event/src/traits.rs similarity index 100% rename from crates/corex-event/src/traits.rs rename to crates/mytheclipse-event/src/traits.rs diff --git a/crates/corex-event/src/typed.rs b/crates/mytheclipse-event/src/typed.rs similarity index 100% rename from crates/corex-event/src/typed.rs rename to crates/mytheclipse-event/src/typed.rs diff --git a/crates/corex-storage/Cargo.toml b/crates/mytheclipse-storage/Cargo.toml similarity index 100% rename from crates/corex-storage/Cargo.toml rename to crates/mytheclipse-storage/Cargo.toml diff --git a/crates/corex-storage/LICENSE-APACHE b/crates/mytheclipse-storage/LICENSE-APACHE similarity index 100% rename from crates/corex-storage/LICENSE-APACHE rename to crates/mytheclipse-storage/LICENSE-APACHE diff --git a/crates/corex-storage/LICENSE-MIT b/crates/mytheclipse-storage/LICENSE-MIT similarity index 100% rename from crates/corex-storage/LICENSE-MIT rename to crates/mytheclipse-storage/LICENSE-MIT diff --git a/crates/corex-storage/README.md b/crates/mytheclipse-storage/README.md similarity index 100% rename from crates/corex-storage/README.md rename to crates/mytheclipse-storage/README.md diff --git a/crates/corex-storage/src/gcs.rs b/crates/mytheclipse-storage/src/gcs.rs similarity index 100% rename from crates/corex-storage/src/gcs.rs rename to crates/mytheclipse-storage/src/gcs.rs diff --git a/crates/corex-storage/src/lib.rs b/crates/mytheclipse-storage/src/lib.rs similarity index 100% rename from crates/corex-storage/src/lib.rs rename to crates/mytheclipse-storage/src/lib.rs diff --git a/crates/corex-storage/src/local.rs b/crates/mytheclipse-storage/src/local.rs similarity index 100% rename from crates/corex-storage/src/local.rs rename to crates/mytheclipse-storage/src/local.rs diff --git a/crates/corex-storage/src/s3.rs b/crates/mytheclipse-storage/src/s3.rs similarity index 100% rename from crates/corex-storage/src/s3.rs rename to crates/mytheclipse-storage/src/s3.rs diff --git a/crates/corex-storage/src/traits.rs b/crates/mytheclipse-storage/src/traits.rs similarity index 100% rename from crates/corex-storage/src/traits.rs rename to crates/mytheclipse-storage/src/traits.rs