pub struct Ssh {
pub id: Option<String>,
pub target: Option<String>,
pub required: Option<bool>,
pub mode: Option<String>,
pub uid: Option<u16>,
pub gid: Option<u16>,
}Expand description
This mount type allows the build container to access SSH keys via SSH agents, with support for passphrases. See https://docs.docker.com/reference/dockerfile/#run—mounttypessh
Fields§
§id: Option<String>ID of SSH agent socket or key. Defaults to “default”.
target: Option<String>SSH agent socket path. Defaults to /run/buildkit/ssh_agent.${N}.
required: Option<bool>If set to true, the instruction errors out when the key is unavailable. Defaults to false.
mode: Option<String>File mode for socket in octal. Default 0600.
uid: Option<u16>User ID for socket. Default 0.
gid: Option<u16>Group ID for socket. Default 0.
Trait Implementations§
Source§impl Patch<SshPatch> for Ssh
impl Patch<SshPatch> for Ssh
Source§fn into_patch(self) -> SshPatch
fn into_patch(self) -> SshPatch
Returns a patch that when applied turns any struct of the same type into
SelfSource§fn into_patch_by_diff(self, previous_struct: Self) -> SshPatch
fn into_patch_by_diff(self, previous_struct: Self) -> SshPatch
Returns a patch that when applied turns
previous_struct into SelfSource§fn new_empty_patch() -> SshPatch
fn new_empty_patch() -> SshPatch
Get an empty patch instance
impl StructuralPartialEq for Ssh
Auto Trait Implementations§
impl Freeze for Ssh
impl RefUnwindSafe for Ssh
impl Send for Ssh
impl Sync for Ssh
impl Unpin for Ssh
impl UnwindSafe for Ssh
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