pub enum HostExecCommand {
Show 18 variants
Cat,
Head,
Tail,
Grep,
Rg,
Ls,
Tree,
Wc,
Uniq,
Diff,
Stat,
File,
Du,
Df,
Pwd,
Hostname,
Uptime,
Whoami,
}Expand description
Closed allowlist of host commands admitted by canonical Synapse execution.
Variants§
Cat
Concatenate files.
Head
Read the beginning of files.
Tail
Read the end of files.
Grep
Search text with grep.
Rg
Search text with ripgrep.
Ls
List filesystem entries.
Tree
Render a directory tree.
Wc
Count bytes, words, or lines.
Uniq
Collapse adjacent duplicate lines.
Diff
Compare files.
Stat
Read filesystem metadata.
File
Identify file types.
Du
Summarize filesystem usage.
Df
Report filesystem capacity.
Pwd
Print the working directory.
Hostname
Print the host name.
Uptime
Print host uptime.
Whoami
Print the effective user.
Implementations§
Trait Implementations§
Source§impl Clone for HostExecCommand
impl Clone for HostExecCommand
Source§fn clone(&self) -> HostExecCommand
fn clone(&self) -> HostExecCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HostExecCommand
impl Debug for HostExecCommand
Source§impl<'de> Deserialize<'de> for HostExecCommand
impl<'de> Deserialize<'de> for HostExecCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HostExecCommand
impl PartialEq for HostExecCommand
Source§fn eq(&self, other: &HostExecCommand) -> bool
fn eq(&self, other: &HostExecCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HostExecCommand
impl Serialize for HostExecCommand
impl Copy for HostExecCommand
impl Eq for HostExecCommand
impl StructuralPartialEq for HostExecCommand
Auto Trait Implementations§
impl Freeze for HostExecCommand
impl RefUnwindSafe for HostExecCommand
impl Send for HostExecCommand
impl Sync for HostExecCommand
impl Unpin for HostExecCommand
impl UnsafeUnpin for HostExecCommand
impl UnwindSafe for HostExecCommand
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.