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
Enforce calling signstar-download-secret-share
DownloadSignature
Enforce calling signstar-download-signature
DownloadWireGuard
Enforce calling signstar-download-wireguard
UploadBackup
Enforce calling signstar-upload-backup
Enforce calling signstar-upload-secret-share
UploadUpdate
Enforce calling signstar-upload-update
Trait Implementations§
Source§impl AsRef<str> for SshForceCommand
impl AsRef<str> for SshForceCommand
Source§impl Debug for SshForceCommand
impl Debug for SshForceCommand
Source§impl Display for SshForceCommand
impl Display for SshForceCommand
Source§impl FromStr for SshForceCommand
impl FromStr for SshForceCommand
Source§impl TryFrom<&UserMapping> for SshForceCommand
impl TryFrom<&UserMapping> for SshForceCommand
Source§impl TryFrom<&str> for SshForceCommand
impl TryFrom<&str> for SshForceCommand
Auto Trait Implementations§
impl Freeze for SshForceCommand
impl RefUnwindSafe for SshForceCommand
impl Send for SshForceCommand
impl Sync for SshForceCommand
impl Unpin for SshForceCommand
impl UnwindSafe for SshForceCommand
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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