pub struct IdMappingOptions {
pub auto_user_ns: Option<bool>,
pub auto_user_ns_opts: Option<AutoUserNsOptions>,
pub gid_map: Option<Vec<IdMap>>,
pub host_gid_mapping: Option<bool>,
pub host_uid_mapping: Option<bool>,
pub uid_map: Option<Vec<IdMap>>,
}
Expand description
IDMappingOptions are used for specifying how ID mapping should be set up for a layer or container.
Fields§
§auto_user_ns: Option<bool>
§auto_user_ns_opts: Option<AutoUserNsOptions>
§gid_map: Option<Vec<IdMap>>
§host_gid_mapping: Option<bool>
§host_uid_mapping: Option<bool>
UIDMap and GIDMap are used for setting up a layer’s root filesystem for use inside of a user namespace where ID mapping is being used. If HostUIDMapping/HostGIDMapping is true, no mapping of the respective type will be used. Otherwise, if UIDMap and/or GIDMap contain at least one mapping, one or both will be used. By default, if neither of those conditions apply, if the layer has a parent layer, the parent layer’s mapping will be used, and if it does not have a parent layer, the mapping which was passed to the Store object when it was initialized will be used.
uid_map: Option<Vec<IdMap>>
Trait Implementations§
Source§impl Clone for IdMappingOptions
impl Clone for IdMappingOptions
Source§fn clone(&self) -> IdMappingOptions
fn clone(&self) -> IdMappingOptions
Returns a copy of the value. Read more
1.0.0 · 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 IdMappingOptions
impl Debug for IdMappingOptions
Source§impl<'de> Deserialize<'de> for IdMappingOptions
impl<'de> Deserialize<'de> for IdMappingOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IdMappingOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IdMappingOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IdMappingOptions
impl PartialEq for IdMappingOptions
Source§impl Serialize for IdMappingOptions
impl Serialize for IdMappingOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for IdMappingOptions
Auto Trait Implementations§
impl Freeze for IdMappingOptions
impl RefUnwindSafe for IdMappingOptions
impl Send for IdMappingOptions
impl Sync for IdMappingOptions
impl Unpin for IdMappingOptions
impl UnwindSafe for IdMappingOptions
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