Struct podman_api::models::IdMappingOptions
source · pub struct IdMappingOptions {
pub auto_user_ns: Option<bool>,
pub auto_user_ns_opts: Option<AutoUserNsOptions>,
pub gid_map: Option<Vec<IdMap, Global>>,
pub host_gid_mapping: Option<bool>,
pub host_uid_mapping: Option<bool>,
pub uid_map: Option<Vec<IdMap, Global>>,
}
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, Global>>
§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, Global>>
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<IdMappingOptions> for IdMappingOptions
impl PartialEq<IdMappingOptions> for IdMappingOptions
source§fn eq(&self, other: &IdMappingOptions) -> bool
fn eq(&self, other: &IdMappingOptions) -> bool
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