Skip to content

Commit

Permalink
Externalise rooter vfs to its own crate
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesdejager committed Sep 13, 2023
1 parent 0960b64 commit 4242e3c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 344 deletions.
12 changes: 12 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ unftp-sbe-fs = "0.2.2"
unftp-sbe-gcs = { version = "0.2.3", optional = true }
unftp-auth-rest = { version = "0.2.2", optional = true }
unftp-auth-jsonfile = { version = "0.3.1", optional = true }
unftp-sbe-rooter = "0.1.0"

# Purely to resolve conflicts
tracing= "0.1.37"
Expand Down
1 change: 1 addition & 0 deletions docs/libunftp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Known storage back-ends:

* [unftp-sbe-fs](https://crates.io/crates/unftp-sbe-fs) - Stores files on the local filesystem
* [unftp-sbe-gcs](https://crates.io/crates/unftp-sbe-gcs) - Stores files in Google Cloud Storage
* [unftp-sbe-rooter](https://crates.io/crates/unftp-sbe-rooter) - Wraps another storage back-end in order to root a user to a specific home directory.

Known authentication back-ends:

Expand Down
3 changes: 1 addition & 2 deletions src/storage/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
mod choose;
mod restrict;
mod rooter;

pub use choose::{ChoosingVfs, InnerVfs, SbeMeta};
pub use restrict::RestrictingVfs;
pub use rooter::{RooterVfs, UserWithRoot};
pub use unftp_sbe_rooter::{RooterVfs, UserWithRoot};
342 changes: 0 additions & 342 deletions src/storage/rooter.rs

This file was deleted.

0 comments on commit 4242e3c

Please sign in to comment.