Skip to main content

DataSpec

Struct DataSpec 

Source
pub struct DataSpec<'a> {
    pub path: Option<&'a str>,
    pub source: Option<&'a str>,
    pub ssh: Option<&'a SshConfig>,
}
Expand description

The data half of the join recipe, as resolved from flags over the join: block.

Fields§

§path: Option<&'a str>

Local source root (the mountpoint, when source is set).

§source: Option<&'a str>

<scheme>://<target> transport that establishes path.

§ssh: Option<&'a SshConfig>

The join block’s tunnel credentials. Reused for the data mount: in the shape this exists for, the data host IS the controller box the tunnel already authenticates against, so a second key field would be surface that only ever repeats the first one.

One consequence belongs in the operator’s hands rather than in their debugging: a forced command= on that key covers subsystem requests, so a join key guardrailed with /usr/sbin/nologin turns sftp away and the mount never comes up while the tunnel keeps working (ssh -N requests no command at all). Either the key permits sftp (internal-sftp -R), or the source root is mounted during provisioning and path is declared bare — which is also the answer for a box whose mount needs different credentials entirely. Both spellings are in the guardrail recipe in docs/ddp/02-cluster-guide.md.

Trait Implementations§

Source§

impl<'a> Debug for DataSpec<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for DataSpec<'a>

Source§

fn default() -> DataSpec<'a>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for DataSpec<'a>

§

impl<'a> RefUnwindSafe for DataSpec<'a>

§

impl<'a> Send for DataSpec<'a>

§

impl<'a> Sync for DataSpec<'a>

§

impl<'a> Unpin for DataSpec<'a>

§

impl<'a> UnsafeUnpin for DataSpec<'a>

§

impl<'a> UnwindSafe for DataSpec<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.