signstar_configure_build

Enum SshForceCommand

Source
pub enum SshForceCommand {
    DownloadBackup,
    DownloadKeyCertificate,
    DownloadMetrics,
    DownloadSecretShare,
    DownloadSignature,
    DownloadWireGuard,
    UploadBackup,
    UploadSecretShare,
    UploadUpdate,
}
Expand description

A command enforced for a user connecting over SSH.

Tracks specific executables that are set using ForceCommand in an sshd_config drop-in configuration.

Variants§

§

DownloadBackup

Enforce calling signstar-download-backup

§

DownloadKeyCertificate

Enforce calling signstar-download-key-certificate

§

DownloadMetrics

Enforce calling signstar-download-metrics

§

DownloadSecretShare

Enforce calling signstar-download-secret-share

§

DownloadSignature

Enforce calling signstar-download-signature

§

DownloadWireGuard

Enforce calling signstar-download-wireguard

§

UploadBackup

Enforce calling signstar-upload-backup

§

UploadSecretShare

Enforce calling signstar-upload-secret-share

§

UploadUpdate

Enforce calling signstar-upload-update

Trait Implementations§

Source§

impl AsRef<str> for SshForceCommand

Source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Debug for SshForceCommand

Source§

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

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

impl Display for SshForceCommand

Source§

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

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

impl FromStr for SshForceCommand

Source§

type Err = ParseError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<SshForceCommand, <Self as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl TryFrom<&UserMapping> for SshForceCommand

Source§

type Error = Error

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

fn try_from(value: &UserMapping) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&str> for SshForceCommand

Source§

type Error = ParseError

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

fn try_from(s: &str) -> Result<SshForceCommand, <Self as TryFrom<&str>>::Error>

Performs the conversion.
Source§

impl VariantNames for SshForceCommand

Source§

const VARIANTS: &'static [&'static str] = _

Names of the variants of this enum

Auto Trait Implementations§

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T