pub struct ShepPaths {
pub home: PathBuf,
pub daemon_config: PathBuf,
pub snapshot: PathBuf,
pub logs: PathBuf,
pub pids: PathBuf,
pub run: PathBuf,
pub socket: PathBuf,
pub barks: PathBuf,
pub kv: PathBuf,
}Expand description
Resolved filesystem layout for one shep home
All paths are derived from $SHEP_HOME (default <home>/.shep); nothing
here touches the filesystem. The root itself is created by the CLI’s own
ensure_home, for the commands that need it before any daemon exists
(startup above all), and everything under it by
shep_daemon::boot::init_dirs on each boot.
Fields§
§home: PathBufRoot: $SHEP_HOME
daemon_config: PathBufDaemon config: shep.toml
snapshot: PathBufFlock snapshot (muster roll): flock.json
logs: PathBufLog directory
pids: PathBufPid-file directory
run: PathBufRuntime dir (sockets; created 0700)
socket: PathBufControl socket: run/shep.sock
barks: PathBufBark history ring: barks.jsonl
kv: PathBufKey/value store: kv.json
Implementations§
Trait Implementations§
impl Eq for ShepPaths
impl StructuralPartialEq for ShepPaths
Auto Trait Implementations§
impl Freeze for ShepPaths
impl RefUnwindSafe for ShepPaths
impl Send for ShepPaths
impl Sync for ShepPaths
impl Unpin for ShepPaths
impl UnsafeUnpin for ShepPaths
impl UnwindSafe for ShepPaths
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.